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

Function compare

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

Source from the content-addressed store, hash-verified

6136 return true;
6137}
6138function compare(a, b) {
6139 if (a == b) return true;
6140 if (!a || !b) return false;
6141 let arrs = [
6142 a,
6143 b
6144 ].map((0, _group.ensureSearchExpressionGroupArray));
6145 let [arrA, arrB] = arrs;
6146 if (arrA.length != arrB.length) return false;
6147 for(let i = 0; i < arrA.length; i++){
6148 if (!compareGroup(arrA[i], arrB[i])) return false;
6149 }
6150 return true;
6151}
6152function startsWith(whole, part) {
6153 if (!part) return true;
6154 let arrs = [

Callers 6

compareArraysFunction · 0.70
compareObjectsFunction · 0.70
leftFunction · 0.70
rightFunction · 0.70
quickselectFunction · 0.70
labelLayoutFunction · 0.70

Calls 11

compareArraysFunction · 0.85
compareObjectsFunction · 0.85
compareNativeSubtypesFunction · 0.85
compareGroupFunction · 0.70
arrayFunction · 0.70
isFunctionFunction · 0.70
fieldFunction · 0.70
accessorFieldsFunction · 0.70
accessorFunction · 0.70
fromMethod · 0.45
forEachMethod · 0.45

Tested by

no test coverage detected