Creates a new array or object corresponding to the array-like structure or object supplied where the keys and values to the new array or object are determined by a callback function.This function is valid in v2.19.0 to v2.20.0. This function has been downloaded 4 times.
Object) corresponding to
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. If the return value is
false-ish the property or item will not be added to the object returned by
mapPairs(). Otherwise the return value should be an array where the first value is the key and the second value is the value of the item or property that should be added to the object returned by
objectOrArrayis an array-like structure then a new array with the modified keys and values will be returned. Otherwise a new object with the keys and values will be returned.
This function requires the following function which is included automatically: