aboutsummaryrefslogtreecommitdiff
path: root/node_modules/lodash/_baseMatchesProperty.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/lodash/_baseMatchesProperty.js')
-rw-r--r--node_modules/lodash/_baseMatchesProperty.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/node_modules/lodash/_baseMatchesProperty.js b/node_modules/lodash/_baseMatchesProperty.js
index 3968081bc..24afd893d 100644
--- a/node_modules/lodash/_baseMatchesProperty.js
+++ b/node_modules/lodash/_baseMatchesProperty.js
@@ -6,9 +6,9 @@ var baseIsEqual = require('./_baseIsEqual'),
matchesStrictComparable = require('./_matchesStrictComparable'),
toKey = require('./_toKey');
-/** Used to compose bitmasks for comparison styles. */
-var UNORDERED_COMPARE_FLAG = 1,
- PARTIAL_COMPARE_FLAG = 2;
+/** Used to compose bitmasks for value comparisons. */
+var COMPARE_PARTIAL_FLAG = 1,
+ COMPARE_UNORDERED_FLAG = 2;
/**
* The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.
@@ -26,7 +26,7 @@ function baseMatchesProperty(path, srcValue) {
var objValue = get(object, path);
return (objValue === undefined && objValue === srcValue)
? hasIn(object, path)
- : baseIsEqual(srcValue, objValue, undefined, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG);
+ : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
};
}