UNPKG

stone-kit

Version:
17 lines (16 loc) 362 B
const f = (e, t) => { if (e === t) return !0; if (e == null || typeof e != "object" || t == null || typeof t != "object") return !1; const r = Object.keys(e), s = Object.keys(t); if (r.length !== s.length) return !1; for (const n of r) if (!s.includes(n) || !f(e[n], t[n])) return !1; return !0; }; export { f as deepEqual };