Object.entries()
Object.entries() is used for listing all key-value pairs in an object. It accepts an object as a argument, and returns an array enumerating the key-value pairs of an object.
const obj = {
1: 'Israel',
2: 'Temi',
3: 'Miro'
};
console.log(Obj...
temitope.hashnode.dev1 min read