mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Bump to v3.9.0.
This commit is contained in:
@@ -13,7 +13,7 @@ import baseMatchesProperty from '../internal/baseMatchesProperty';
|
||||
* @memberOf _
|
||||
* @category Utility
|
||||
* @param {Array|string} path The path of the property to get.
|
||||
* @param {*} value The value to compare.
|
||||
* @param {*} srcValue The value to match.
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
*
|
||||
@@ -25,8 +25,8 @@ import baseMatchesProperty from '../internal/baseMatchesProperty';
|
||||
* _.find(users, _.matchesProperty('user', 'fred'));
|
||||
* // => { 'user': 'fred' }
|
||||
*/
|
||||
function matchesProperty(path, value) {
|
||||
return baseMatchesProperty(path, baseClone(value, true));
|
||||
function matchesProperty(path, srcValue) {
|
||||
return baseMatchesProperty(path, baseClone(srcValue, true));
|
||||
}
|
||||
|
||||
export default matchesProperty;
|
||||
|
||||
Reference in New Issue
Block a user