Remove references to _.

This commit is contained in:
John-David Dalton
2017-01-09 17:38:33 -08:00
parent 65654f8f9e
commit 77cc37ba49
410 changed files with 875 additions and 1157 deletions

View File

@@ -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) {