mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Ensure _.match and _.matchesProperty compares functions by reference. [closes #1101]
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user