indexBy()
Traverses an array and returns an object with the values from the array placed in the specified indices.
This function is valid in v2.1.0 to v2.11.0. This function has been downloaded 0 times.arr
and return an index that will be the property name under which the value will be found in the returned object. If the same index is returned multiple times the last value corresponding to that index will be the one found in the returned object. The values passed to this function will be (1) the arr
item, (2) the index in arr
at which the item is found, and (3) arr
.{}
opt_initial
with additional properties names coming from the return values of indexer
and the items found in arr
.This function directly requires the following function which is included automatically:
has()