UNPKG

remeda

Version:

A utility library for JavaScript and Typescript.

2 lines 386 B
import{heapMaybeInsert as e,heapify as t}from"./heap-DHAb7Vvz.js";import{purryOrderRulesWithArgument as n}from"./purryOrderRules-CfRtTEyM.js";function r(...e){return n(i,e)}function i(n,r,i){if(i<=0)return[];if(i>=n.length)return[...n];let a=n.slice(0,i);t(a,r);let o=n.slice(i);for(let t of o)e(a,r,t);return a}export{r as takeFirstBy}; //# sourceMappingURL=takeFirstBy-DFWlrBVp.js.map