mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Remove references to _.
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import baseInvoke from './_baseInvoke.js';
|
||||
|
||||
/**
|
||||
* The opposite of `_.method`; this method creates a function that invokes
|
||||
* The opposite of `method`; this method creates a function that invokes
|
||||
* the method at a given path of `object`. Any additional arguments are
|
||||
* provided to the invoked method.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.7.0
|
||||
* @category Util
|
||||
* @param {Object} object The object to query.
|
||||
@@ -14,13 +13,13 @@ import baseInvoke from './_baseInvoke.js';
|
||||
* @returns {Function} Returns the new invoker function.
|
||||
* @example
|
||||
*
|
||||
* var array = _.times(3, _.constant),
|
||||
* var array = times(3, constant),
|
||||
* object = { 'a': array, 'b': array, 'c': array };
|
||||
*
|
||||
* _.map(['a[2]', 'c[0]'], _.methodOf(object));
|
||||
* map(['a[2]', 'c[0]'], methodOf(object));
|
||||
* // => [2, 0]
|
||||
*
|
||||
* _.map([['a', '2'], ['c', '0']], _.methodOf(object));
|
||||
* map([['a', '2'], ['c', '0']], methodOf(object));
|
||||
* // => [2, 0]
|
||||
*/
|
||||
function methodOf(object, ...args) {
|
||||
|
||||
Reference in New Issue
Block a user