MCPcopy Create free account
hub / github.com/microsoft/SandDance / objectEqual

Function objectEqual

docs/app/js/sanddance-app.js:124877–124890  ·  view source on GitHub ↗
(a, b23)

Source from the content-addressed store, hash-verified

124875 return sceneEqual(pathParse(a), pathParse(b22));
124876}
124877function objectEqual(a, b23) {
124878 var ka = Object.keys(a), kb = Object.keys(b23), key, i;
124879 if (ka.length !== kb.length) return false;
124880 ka.sort();
124881 kb.sort();
124882 for(i = ka.length - 1; i >= 0; i--){
124883 if (ka[i] != kb[i]) return false;
124884 }
124885 for(i = ka.length - 1; i >= 0; i--){
124886 key = ka[i];
124887 if (!sceneEqual(a[key], b23[key], key)) return false;
124888 }
124889 return typeof a === typeof b23;
124890}
124891function resetSVGDefIds() {
124892 resetSVGClipId();
124893 resetSVGGradientId();

Callers 1

sceneEqualFunction · 0.70

Calls 1

sceneEqualFunction · 0.70

Tested by

no test coverage detected