remeda
Version:
A utility library for JavaScript and Typescript.
2 lines • 467 B
JavaScript
import{SKIP_ITEM as e,lazyEmptyEvaluator as t}from"./utilityEvaluators-DORpnx39.js";import{purryFromLazy as n}from"./purryFromLazy-3oywCNIb.js";function r(...e){return n(i,e)}function i(n){if(n.length===0)return t;let r=new Map;for(let e of n)r.set(e,(r.get(e)??0)+1);return t=>{let n=r.get(t);return n===void 0||n===0?e:(n===1?r.delete(t):r.set(t,n-1),{hasNext:!0,next:t,done:r.size===0})}}export{r as intersection};
//# sourceMappingURL=intersection-DCadGlPk.js.map