Object.keys

suggest change

Object.keys(obj) returns an array of a given object’s keys.

var obj = {
    a: "hello",
    b: "this is",
    c: "javascript!"
};

var keys = Object.keys(obj);

console.log(keys); // ["a", "b", "c"]

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents