MCPcopy Create free account
hub / github.com/dataease/SQLBot / shallowEqual

Function shallowEqual

frontend/public/swagger-ui-bundle.js:56795–56804  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

56793 function is(s, o) {
56794 return s === o ? 0 !== s || 0 !== o || 1 / s == 1 / o : s != s && o != o
56795 }
56796 function shallowEqual(s, o) {
56797 if (is(s, o)) return !0
56798 if ('object' != typeof s || null === s || 'object' != typeof o || null === o) return !1
56799 const i = Object.keys(s),
56800 a = Object.keys(o)
56801 if (i.length !== a.length) return !1
56802 for (let a = 0; a < i.length; a++)
56803 if (!Object.prototype.hasOwnProperty.call(o, i[a]) || !is(s[i[a]], o[i[a]])) return !1
56804 return !0
56805 }
56806 var zk = {
56807 childContextTypes: !0,

Callers

nothing calls this directly

Calls 2

isFunction · 0.70
keysMethod · 0.45

Tested by

no test coverage detected