Avoid deep crawl if object and source are strict equal.

This commit is contained in:
John-David Dalton
2015-09-11 12:57:34 -07:00
parent 7245570405
commit a6ead18121

View File

@@ -2475,7 +2475,7 @@
}; };
} }
return function(object) { return function(object) {
return baseIsMatch(object, source, matchData); return object === source || baseIsMatch(object, source, matchData);
}; };
} }
@@ -8599,7 +8599,7 @@
* // => false * // => false
*/ */
function isMatch(object, source) { function isMatch(object, source) {
return baseIsMatch(object, source, getMatchData(source)); return object === source || baseIsMatch(object, source, getMatchData(source));
} }
/** /**