For Object.entries, Why is the 0 index giving me item on index 1 ?
const object3 = { 100: 'a', 2: 'b', 7: 'c' };
console.log(Object.entries(object3)[0]);
// expected output: Array ["2", "b"]
Is there something with the random keys ?
For Object.entries, Why is the 0 index giving me item on index 1 ?
const object3 = { 100: 'a', 2: 'b', 7: 'c' };
console.log(Object.entries(object3)[0]);
// expected output: Array ["2", "b"]
Is there something with the random keys ?