Returns value's keys.
value
1.0.0
keys({ a: 0, b: 1, c: 2 });// => ["a", "b", "c"] Copy
keys({ a: 0, b: 1, c: 2 });// => ["a", "b", "c"]
function Foo() { this.a = 1 this.b = 2}Foo.prototype.c = 3keys(new Foo)// => ["a", "b"] (iteration order is not guaranteed) Copy
function Foo() { this.a = 1 this.b = 2}Foo.prototype.c = 3keys(new Foo)// => ["a", "b"] (iteration order is not guaranteed)
keys("hi")// => ["0", "1"] Copy
keys("hi")// => ["0", "1"]
Returns
value
's keys.