UNPKG

@thi.ng/transducers

Version:

Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations

5 lines 446 B
import type { GroupByOpts, Reducer } from "./api.js"; export declare function groupByMap<SRC, KEY, GROUP>(opts?: Partial<GroupByOpts<SRC, KEY, GROUP>>): Reducer<SRC, Map<KEY, GROUP>>; export declare function groupByMap<SRC, GROUP>(src: Iterable<SRC>): Map<SRC, GROUP>; export declare function groupByMap<SRC, KEY, GROUP>(opts: Partial<GroupByOpts<SRC, KEY, GROUP>>, src: Iterable<SRC>): Map<KEY, GROUP>; //# sourceMappingURL=group-by-map.d.ts.map