UNPKG

@naverpay/hidash

Version:

improved lodash

22 lines (21 loc) 467 B
import r 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], 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) || r(l).call(l, e); } return l; } export { u as default, u as difference };