UNPKG

remeda

Version:

A utility library for JavaScript and Typescript.

2 lines (1 loc) 254 B
import{a as o}from"./chunk-WIMGWYZL.js";function c(...e){return o(y,e)}var y=(e,a)=>{let n=new Map;for(let[d,u]of e.entries()){let r=a(u,d,e);if(r!==void 0){let t=n.get(r);t===void 0?n.set(r,1):n.set(r,t+1)}}return Object.fromEntries(n)};export{c as a};