mapKeys()
Creates a new array or object corresponding to the array-like structure or object supplied where the keys to the new array or object are determined by a callback function.
This function is valid in v2.19.0 to v2.24.3. This function has been downloaded 44 times.callback
.objectOrArray
. The first argument passed will be current value of the item or property. The second argument will be the index or property name. The third argument will be a reference to objectOrArray
. The return value will be used as the corresponding key to be set in the array or object returned by mapKeys()
.global
callback
.objectOrArray
is an array-like structure then a new array with the modified keys will be returned. Otherwise a new object with the modified keys will be returned.This function directly requires the following function which is included automatically:
map()
This function is directly required by the following function:
map()