UNPKG

@naverpay/hidash

Version:
25 lines (24 loc) 502 B
import i from "core-js-pure/features/instance/push.js"; function u(n, ...c) { if (!n || n.length === 0) return []; const f = /* @__PURE__ */ new Set(), s = c.length; for (let t = 0; t < s; t++) { const e = c[t]; if (e) { const h = e.length; for (let o = 0; o < h; o++) f.add(e[o]); } } const l = []; for (let t = 0; t < n.length; t++) { const e = n[t]; f.has(e) || i(l).call(l, e); } return l; } export { u as default, u as difference };