mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 19:37:49 +00:00
Remove references to _.
This commit is contained in:
@@ -9,15 +9,14 @@ const CLONE_DEEP_FLAG = 1;
|
||||
* object and `source`, returning `true` if the given object has equivalent
|
||||
* property values, else `false`.
|
||||
*
|
||||
* **Note:** The created function is equivalent to `_.isMatch` with `source`
|
||||
* **Note:** The created function is equivalent to `isMatch` with `source`
|
||||
* partially applied.
|
||||
*
|
||||
* Partial comparisons will match empty array and empty object `source`
|
||||
* values against any array or object value, respectively. See `_.isEqual`
|
||||
* values against any array or object value, respectively. See `isEqual`
|
||||
* for a list of supported value comparisons.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.0.0
|
||||
* @category Util
|
||||
* @param {Object} source The object of property values to match.
|
||||
@@ -29,7 +28,7 @@ const CLONE_DEEP_FLAG = 1;
|
||||
* { 'a': 4, 'b': 5, 'c': 6 }
|
||||
* ];
|
||||
*
|
||||
* _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
|
||||
* filter(objects, matches({ 'a': 4, 'c': 6 }));
|
||||
* // => [{ 'a': 4, 'b': 5, 'c': 6 }]
|
||||
*/
|
||||
function matches(source) {
|
||||
|
||||
Reference in New Issue
Block a user