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

Function equalArray

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

Source from the content-addressed store, hash-verified

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;
142935 }
142936 return true;
142937}
142938function equalObject(a, b) {
142939 for(const key in a){
142940 if (!equal(a[key], b[key])) return false;

Callers 1

equalFunction · 0.70

Calls 1

equalFunction · 0.70

Tested by

no test coverage detected