UNPKG

remeda

Version:

A utility library for JavaScript and Typescript.

2 lines 329 B
import{t as e}from"./purry-GjwKKIlp.js";function t(...t){return e(n,t)}const n=(e,t)=>{let n=Object.create(null);for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);if(a!==void 0){let e=n[a];e===void 0?n[a]=[i]:e.push(i)}}return Object.setPrototypeOf(n,Object.prototype),n};export{t as groupBy}; //# sourceMappingURL=groupBy.js.map