mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Avoid deep crawl if object and source are strict equal.
This commit is contained in:
@@ -2475,7 +2475,7 @@
|
||||
};
|
||||
}
|
||||
return function(object) {
|
||||
return baseIsMatch(object, source, matchData);
|
||||
return object === source || baseIsMatch(object, source, matchData);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -8599,7 +8599,7 @@
|
||||
* // => false
|
||||
*/
|
||||
function isMatch(object, source) {
|
||||
return baseIsMatch(object, source, getMatchData(source));
|
||||
return object === source || baseIsMatch(object, source, getMatchData(source));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user