UNPKG

remeda

Version:

A utility library for JavaScript and Typescript.

2 lines 342 B
import{purry as e}from"./purry-DH9cw9sy.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-DG3Piv-t.js.map