JavaScript: List Properties

By Xah Lee. Date: . Last updated: .

Object to Array

To list properties of a object, use one of the following methods.

Properties to Array
MethodEnumerable onlyinclude Symbol keyinclude string key
Object.keys no
Object.values no
Object.entries no
Object.getOwnPropertyNames nono
Object.getOwnPropertySymbols nono
Reflect.ownKeys no

Array-Like Object to Array

Array.from

Iterable Object to Array

Array.from

JavaScript Property

BUY
ΣJS
JavaScript in Depth

List Object Properties (to Array)