* 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)
| 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 |