Description

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

Syntax

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