Skip to main content

array_group_by

array_group_by(array, grouping_key_producer, keyHashFunction) ⇒ Map.<K, Array.<T>>

Kind: global function

ParamTypeDescription
arrayArray.<T>
grouping_key_producerfunctiongiven an element from input array, returns a grouping key. Can be an object, if it implements .equals method keys can be compared that way as well
keyHashFunction