remeda
Version:
A utility library for JavaScript and Typescript.
2 lines (1 loc) • 319 B
JavaScript
import{a as y}from"./chunk-LFJW7BOT.js";import{a,c as o}from"./chunk-ANXBDSUI.js";function d(...e){return y(f,e)}function f(e){if(e.length===0)return o;let n=new Map;for(let r of e)n.set(r,(n.get(r)??0)+1);return r=>{let t=n.get(r);return t===void 0||t===0?{done:!1,hasNext:!0,next:r}:(n.set(r,t-1),a)}}export{d as a};