UNPKG

remeda

Version:

A utility library for JavaScript and Typescript.

2 lines (1 loc) 298 B
import{a as p,b as u}from"./chunk-ZPVGOJQV.js";import{b as i}from"./chunk-EMIEIAAH.js";function c(...r){return i(s,r)}function s(r,n,e){if(e>=r.length)return[];if(e<=0)return[...r];let o=r.slice(0,e);p(o,n);let t=[],a=r.slice(e);for(let y of a){let m=u(o,n,y);t.push(m??y)}return t}export{c as a};