UNPKG

remeda

Version:

A utility library for JavaScript and Typescript.

2 lines (1 loc) 281 B
import{a}from"./chunk-WIMGWYZL.js";function i(...e){return a(p,e)}var p=(e,d)=>{let r=Object.create(null);for(let n=0;n<e.length;n++){let t=e[n],y=d(t,n,e);if(y!==void 0){let o=r[y];o===void 0?r[y]=[t]:o.push(t)}}return Object.setPrototypeOf(r,Object.prototype),r};export{i as a};