groupBy()
Takes an array and groups the items together based on a given hasher function.
This function is valid in v2.12.0 to v2.24.3. This function has been downloaded 63 times.hasher
function.arr
. If an array or a string it will be seen as the path within each item in arr
to the property by which to group each item.{}
hasher
will be arrays containing all of the corresponding items from arr
. If not specified the default is a new empty object.opt_initial
with all of the keys specified by hasher
corresponding to arrays containing those values that come from arr
.This function directly requires the following function which is included automatically:
countBy()
This function is directly required by the following function:
countBy()