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

Function isEqual

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

Source from the content-addressed store, hash-verified

79601var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");
79602parcelHelpers.defineInteropFlag(exports);
79603function isEqual(a, b) {
79604 if (a === b) return true;
79605 if (Array.isArray(a)) {
79606 var len = a.length;
79607 if (!b || b.length !== len) return false;
79608 for(var i = 0; i < len; i++){
79609 if (a[i] !== b[i]) return false;
79610 }
79611 return true;
79612 }
79613 return false;
79614}
79615function memoize(compute) {
79616 var cachedArgs = {};
79617 var cachedResult;

Callers 1

memoizeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected