Skip to content

groupBy

Litichevskiy Dmitriy edited this page Jan 26, 2019 · 2 revisions

GroupByOptions : Object

Kind: global typedef
Properties

Name Type Default Description
[elementSelector] selector Method for projecting element of the source iterable to element of a group.
[comparer] EqualityComparer DefaultEqualityComparer An EqualityComparer to compare keys.

manipula.groupBy(keySelector, [options])

Method groups the elements of an iterable.

Kind: instance method of Manipula

Param Type Description
keySelector selector A function to extract the key for each element.
[options] GroupByOptions | selector Grouping settings or groups elements selector.
Clone this wiki locally