MCPcopy Create free account
hub / github.com/keepfool/vue-tutorials / looseEqual

Function looseEqual

01.GettingStarted/js/vue.js:389–393  ·  view source on GitHub ↗

* Check if two values are loosely equal - that is, * if they are plain objects, do they have the same shape? * * @param {*} a * @param {*} b * @return {Boolean}

(a, b)

Source from the content-addressed store, hash-verified

387 */
388
389 function looseEqual(a, b) {
390 /* eslint-disable eqeqeq */
391 return a == b || (isObject(a) && isObject(b) ? JSON.stringify(a) === JSON.stringify(b) : false);
392 /* eslint-enable eqeqeq */
393 }
394
395 var hasProto = ('__proto__' in {});
396

Callers 2

vue.jsFile · 0.70
indexOf$1Function · 0.70

Calls 1

isObjectFunction · 0.70

Tested by

no test coverage detected