mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Apply let/const transform.
This commit is contained in:
@@ -7,8 +7,8 @@ import matchesStrictComparable from './_matchesStrictComparable.js';
|
||||
import toKey from './_toKey.js';
|
||||
|
||||
/** Used to compose bitmasks for value comparisons. */
|
||||
var COMPARE_PARTIAL_FLAG = 1,
|
||||
COMPARE_UNORDERED_FLAG = 2;
|
||||
const COMPARE_PARTIAL_FLAG = 1;
|
||||
const COMPARE_UNORDERED_FLAG = 2;
|
||||
|
||||
/**
|
||||
* The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
|
||||
@@ -23,7 +23,7 @@ function baseMatchesProperty(path, srcValue) {
|
||||
return matchesStrictComparable(toKey(path), srcValue);
|
||||
}
|
||||
return object => {
|
||||
var objValue = get(object, path);
|
||||
const objValue = get(object, path);
|
||||
return (objValue === undefined && objValue === srcValue)
|
||||
? hasIn(object, path)
|
||||
: baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
||||
|
||||
Reference in New Issue
Block a user