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 yesnoyes
Object.values yesnoyes
Object.entries yesnoyes
Object.getOwnPropertyNames nonoyes
Object.getOwnPropertySymbols noyesno
Reflect.ownKeys noyesyes

[see Property Attributes]

Array-Like Object to Array

Array.from

Iterable Object to Array

Array.from

JavaScript Property

βˆ‘ JS in Depth
XAH Β BUY NOW

JS in Depth

JS Obj Ref

DOM


JS in Depth

Basic Syntax

Value Types

Variable

String

Function

Property

Object and Inheritance

Array

Constructor/Class

Iterable 🌟

Misc