function p(f, l, n, h) {
  const e = f.length;
  let i = 0, c;
  if (l < 0 ? l = -l > e ? 0 : e + l : l = l > e ? e : l, n = n > 0 ? n : 0, h.length < 1e4)
    c = Array.from(h), c.unshift(l, n), f.splice(...c);
  else
    for (n && f.splice(l, n); i < h.length; )
      c = h.slice(i, i + 1e4), c.unshift(l, 0), f.splice(...c), i += 1e4, l += 1e4;
}
export {
  p as splice
};
//# sourceMappingURL=index.es.js.map
