Make whereIndicator check strict and make the _.where deep object comparison unit test deeper.

Former-commit-id: b9c59ff56b3ab7acd519888407de5dd02d6475cf
This commit is contained in:
John-David Dalton
2013-02-09 10:08:43 -08:00
parent 9dfa2609be
commit 77804907b6
6 changed files with 7 additions and 7 deletions

View File

@@ -1446,7 +1446,7 @@
*/
function isEqual(a, b, callback, thisArg, stackA, stackB) {
// used to indicate that when comparing objects, `a` has at least the properties of `b`
var whereIndicator = callback == indicatorObject;
var whereIndicator = callback === indicatorObject;
if (callback && !whereIndicator) {
callback = typeof thisArg == 'undefined' ? callback : createCallback(callback, thisArg, 2);
var result = callback(a, b);