Skip to content

keys

keys(target)

Returns an array of target object's enumerable property names.

ts
keys({ a: 1, b: 2, c: 3 }); // ["a", "b", "c"]
ts
pipe({ a: 1, b: 2, c: 3 }, keys()); // ["a", "b", "c"]