JS: 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
syntaxenumerable onlyinclude symbol keyinclude string key
Object. getOwnPropertyNames(o)nonoyes
Object. getOwnPropertySymbols(o)noyesno


[see JS: Property Attributes, writable, enumerable, configurable]

Array-Like Object to Array

JS: Array-Like Object to Array

Iterable Object to Array


[see JS: Array.from]

[see JS: Iterable]

JS Array

  1. Understand JS Array
  2. Create Array
  3. Sparse Array
  4. Array-Like Object
  5. Array How-To

JS Object Property

  1. Property Overview
  2. Property Key
  3. Dot vs Bracket Notation
  4. Create/Delete Property
  5. Get/Set Property
  6. Property Existence
  7. Access Property
  8. List Properties
  9. Property Attributes
  10. Getter/Setter
  11. Property Descriptor
  12. Symbol
Like it? Help me by telling your friends. Or, Put $5 at patreon.

Or, Buy JavaScript in Depth

If you have a question, put $5 at patreon and message me.

Web Dev Tutorials