MCPcopy Index your code
hub / github.com/microsoft/SandDance / equal

Function equal

docs/app/js/sanddance-app.js:142929–142931  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

142927 return (0, _vegaUtil.extend)(...args);
142928}
142929function equal(a, b) {
142930 return a === b || a !== a && b !== b ? true : (0, _vegaUtil.isArray)(a) ? (0, _vegaUtil.isArray)(b) && a.length === b.length ? equalArray(a, b) : false : (0, _vegaUtil.isObject)(a) && (0, _vegaUtil.isObject)(b) ? equalObject(a, b) : false;
142931}
142932function equalArray(a, b) {
142933 for(let i = 0, n = a.length; i < n; ++i){
142934 if (!equal(a[i], b[i])) return false;

Callers 3

comparePropValuesFunction · 0.70
equalArrayFunction · 0.70
equalObjectFunction · 0.70

Calls 2

equalArrayFunction · 0.70
equalObjectFunction · 0.70

Tested by

no test coverage detected