UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

6 lines 241 B
/** Similar to lodash keyBy */ export const keyBy = (list, getKey) => list.reduce((previous, currentItem) => { const group = getKey(currentItem); return { ...previous, [group]: currentItem }; }, {}); //# sourceMappingURL=keyBy.js.map