Object.keys
Object.keys(object)Return an array of the object’s own enumerable string keys, in the order described above.
Returns: An array of strings. Symbol keys are omitted. Inherited keys are omitted.
const o = { b: 1, "2": "two", a: 2, "10": "ten", "1": "one" };
console.log(Object.keys(o).join(","));Expected output
1,2,10,b,aRelated: Map