objectToEntries
Creates an array of key-value pair arrays from an object.
- Use
Object.keys()
andArray.prototype.map()
to iterate over the object's keys and produce an array with key-value pairs.
Creates an array of key-value pair arrays from an object.
Object.keys()
and Array.prototype.map()
to iterate over the object's keys and produce an array with key-value pairs.