MCPcopy Create free account
hub / github.com/alignoth/alignoth / mB

Function mB

resources/vega.min.js:28071–28084  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

28069 return 0.2126 * pB(e.r) + 0.7152 * pB(e.g) + 0.0722 * pB(e.b);
28070 }
28071 function mB(t, e) {
28072 return (
28073 t === e ||
28074 (t != t && e != e) ||
28075 (k(t)
28076 ? !(!k(e) || t.length !== e.length) &&
28077 (function (t, e) {
28078 for (let n = 0, r = t.length; n < r; ++n)
28079 if (!mB(t[n], e[n])) return !1;
28080 return !0;
28081 })(t, e)
28082 : !(!A(t) || !A(e)) && yB(t, e))
28083 );
28084 }
28085 function yB(t, e) {
28086 for (const n in t) if (!mB(t[n], e[n])) return !1;
28087 return !0;

Callers 1

yBFunction · 0.85

Calls 3

yBFunction · 0.85
kFunction · 0.70
AFunction · 0.70

Tested by

no test coverage detected