wiki/content/20201113095226-object_keys.md

274 B

date id title
2020-11-13 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}));