Function groupByUntilChanged
- groupByUntilChanged<T, K>(iterable: Iterable<T>, selector: ((item: T) => K), includeKey: true): { items: T[]; key: K }[]
-
Parameters
-
iterable: Iterable<T>
-
selector: ((item: T) => K)
-
includeKey: true
Returns { items: T[]; key: K }[]
- groupByUntilChanged<T, K>(iterable: Iterable<T>, selector: ((item: T) => K), includeKey?: false): T[][]
-
Parameters
-
iterable: Iterable<T>
-
selector: ((item: T) => K)
-
Optional
includeKey: false
Returns T[][]