diff options
Diffstat (limited to 'node_modules/lodash/matches.js')
-rw-r--r-- | node_modules/lodash/matches.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/node_modules/lodash/matches.js b/node_modules/lodash/matches.js index d34e98e9b..11145db37 100644 --- a/node_modules/lodash/matches.js +++ b/node_modules/lodash/matches.js @@ -1,6 +1,9 @@ var baseClone = require('./_baseClone'), baseMatches = require('./_baseMatches'); +/** Used to compose bitmasks for cloning. */ +var CLONE_DEEP_FLAG = 1; + /** * Creates a function that performs a partial deep comparison between a given * object and `source`, returning `true` if the given object has equivalent @@ -30,7 +33,7 @@ var baseClone = require('./_baseClone'), * // => [{ 'a': 4, 'b': 5, 'c': 6 }] */ function matches(source) { - return baseMatches(baseClone(source, true)); + return baseMatches(baseClone(source, CLONE_DEEP_FLAG)); } module.exports = matches; |