Object concepts

Enumerable property

Try the free JavaScript compiler

Enumerability is a property descriptor attribute controlling participation in operations such as Object.keys for own string keys. It is independent of writability or existence.

Formal Syntax & Structure

javascript syntaxjavascript
Object.keys(object)

Working Example

Example Snippetjavascript
const a={x:1};console.log(Object.keys(a).join(","),Object.keys([]).includes("length"));
JavaScript Reference