Map function for object entries. Allows for redefining keys. Works like Array.prototype.map but key-value pairs are passed to the map function, which returns a new key for the pair.
Array.prototype.map
map
The object to map.
The transformation function to use for each entry.
Map function for object entries. Allows for redefining keys. Works like
Array.prototype.mapbut key-value pairs are passed to themapfunction, which returns a new key for the pair.