Object.keys

suggest change

Object.keys(obj) returns an array of a given object’s own enumerable string keys. Symbol keys, non-enumerable keys, and inherited keys are omitted. Integer-like keys come first, in numeric order, followed by other string keys in insertion order.

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

const 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