mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
perfomance fixes, eslint fixes (#4482)
This commit is contained in:
committed by
John-David Dalton
parent
29eb5713f5
commit
898b378f06
@@ -11,7 +11,7 @@ import matchesStrictComparable from './matchesStrictComparable.js'
|
||||
*/
|
||||
function baseMatches(source) {
|
||||
const matchData = getMatchData(source)
|
||||
if (matchData.length == 1 && matchData[0][2]) {
|
||||
if (matchData.length === 1 && matchData[0][2]) {
|
||||
return matchesStrictComparable(matchData[0][0], matchData[0][1])
|
||||
}
|
||||
return (object) => object === source || baseIsMatch(object, source, matchData)
|
||||
|
||||
Reference in New Issue
Block a user