Object.entries() returns an array of the key/value pairs of an object.
Object.entries() makes it simple to convert Object to Map: