Closed MiguelCastillo closed 6 years ago
…alue entires to build the map with custom keys and values
The following example will generate a map with keys that are value * 2 and the mapped value is just the value itself.
value * 2
arrayToMap([1, 2, 3], (value) => [value * 2, value])
…alue entires to build the map with custom keys and values
The following example will generate a map with keys that are
value * 2
and the mapped value is just the value itself.