Ensure _.matches and _.matchesProperty work with function value params.

This commit is contained in:
jdalton
2015-03-23 09:24:05 -07:00
parent e7b4ada65f
commit 600a4e86e1
2 changed files with 21 additions and 1 deletions

View File

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