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