Ensure _.match and _.matchesProperty compares functions by reference. [closes #1101]

This commit is contained in:
jdalton
2015-03-31 22:30:57 -07:00
parent 0907aabacd
commit c5cc907838
2 changed files with 25 additions and 15 deletions

View File

@@ -2342,8 +2342,8 @@
othIsArr = isTypedArray(other);
}
}
var objIsObj = (objTag == objectTag || (isLoose && objTag == funcTag)) && !isHostObject(object),
othIsObj = (othTag == objectTag || (isLoose && othTag == funcTag)) && !isHostObject(other),
var objIsObj = objTag == objectTag && !isHostObject(object),
othIsObj = othTag == objectTag && !isHostObject(other),
isSameTag = objTag == othTag;
if (isSameTag && !(objIsArr || objIsObj)) {