wiki/content/20201113095226-object_keys.md

257 B

id title
e398afb7-a05b-4780-a3fb-8445f4196c31 Object.keys

Description

Object.keys returns the object property names as an array of strings

Syntax

console.log(Object.keys({x: 0, y: 0, z: 2}));