Returns an array of the keys of the given object.
The object whose keys will be retrieved.
An array of the object's keys.
const obj = { a: 1, b: 2 };const result = keys(obj);console.log(result); // ["a", "b"] Copy
const obj = { a: 1, b: 2 };const result = keys(obj);console.log(result); // ["a", "b"]
1.1.0
Returns an array of the keys of the given object.