update to state of the art
This commit is contained in:
7
node_modules/lodash/matches.js
generated
vendored
7
node_modules/lodash/matches.js
generated
vendored
@@ -16,6 +16,9 @@ var CLONE_DEEP_FLAG = 1;
|
||||
* values against any array or object value, respectively. See `_.isEqual`
|
||||
* for a list of supported value comparisons.
|
||||
*
|
||||
* **Note:** Multiple values can be checked by combining several matchers
|
||||
* using `_.overSome`
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.0.0
|
||||
@@ -31,6 +34,10 @@ var CLONE_DEEP_FLAG = 1;
|
||||
*
|
||||
* _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
|
||||
* // => [{ 'a': 4, 'b': 5, 'c': 6 }]
|
||||
*
|
||||
* // Checking for several possible values
|
||||
* _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
|
||||
* // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
|
||||
*/
|
||||
function matches(source) {
|
||||
return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
|
||||
|
Reference in New Issue
Block a user