mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Document partial args of _.method and _.methodOf. [ci skip] [closes #1223]
This commit is contained in:
@@ -11382,12 +11382,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a function which invokes the method at `path` on a given object.
|
* Creates a function that invokes the method at `path` on a given object.
|
||||||
|
* Any additional arguments are provided to the invoked method.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Utility
|
* @category Utility
|
||||||
* @param {Array|string} path The path of the method to invoke.
|
* @param {Array|string} path The path of the method to invoke.
|
||||||
|
* @param {...*} [args] The arguments to invoke the method with.
|
||||||
* @returns {Function} Returns the new function.
|
* @returns {Function} Returns the new function.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
@@ -11409,13 +11411,15 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The opposite of `_.method`; this method creates a function which invokes
|
* The opposite of `_.method`; this method creates a function that invokes
|
||||||
* the method at a given path on `object`.
|
* the method at a given path on `object`. Any additional arguments are
|
||||||
|
* provided to the invoked method.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Utility
|
* @category Utility
|
||||||
* @param {Object} object The object to query.
|
* @param {Object} object The object to query.
|
||||||
|
* @param {...*} [args] The arguments to invoke the method with.
|
||||||
* @returns {Function} Returns the new function.
|
* @returns {Function} Returns the new function.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user