mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Clarify docs of _.matches and _.modArgs methods. [ci skip]
This commit is contained in:
15
lodash.js
15
lodash.js
@@ -2874,7 +2874,7 @@
|
||||
*
|
||||
* @private
|
||||
* @param {string} path The path of the property to get.
|
||||
* @param {*} srcValue The value to compare.
|
||||
* @param {*} srcValue The value to match.
|
||||
* @returns {Function} Returns the new function.
|
||||
*/
|
||||
function baseMatchesProperty(path, srcValue) {
|
||||
@@ -8355,7 +8355,7 @@
|
||||
|
||||
/**
|
||||
* This method is like `_.modArgs` except that each of the `transforms` is
|
||||
* provided all arguments the created function is invoked with.
|
||||
* provided the complete set of arguments the created function is invoked with.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
@@ -12285,9 +12285,9 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a function that performs a deep comparison between a given object
|
||||
* and `source`, returning `true` if the given object has equivalent property
|
||||
* values, else `false`.
|
||||
* Creates a function that performs a deep partial comparison between a given
|
||||
* object and `source`, returning `true` if the given object has equivalent
|
||||
* property values, else `false`.
|
||||
*
|
||||
* **Note:** This method supports comparing arrays, booleans, `Date` objects,
|
||||
* numbers, `Object` objects, regexes, and strings. Objects are compared by
|
||||
@@ -12314,8 +12314,9 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a function that compares the value at `path` of a given object
|
||||
* to `srcValue`.
|
||||
* Creates a function that performs a deep partial comparison between the
|
||||
* value at `path` of a given object to `srcValue`, returning `true` if the
|
||||
* object value is equivalent, else `false`.
|
||||
*
|
||||
* **Note:** This method supports comparing arrays, booleans, `Date` objects,
|
||||
* numbers, `Object` objects, regexes, and strings.
|
||||
|
||||
Reference in New Issue
Block a user