mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Bump to v4.7.0.
This commit is contained in:
@@ -6,6 +6,7 @@ define(['./_baseInvoke', './rest'], function(baseInvoke, rest) {
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.7.0
|
||||
* @category Util
|
||||
* @param {Array|string} path The path of the method to invoke.
|
||||
* @param {...*} [args] The arguments to invoke the method with.
|
||||
@@ -20,8 +21,8 @@ define(['./_baseInvoke', './rest'], function(baseInvoke, rest) {
|
||||
* _.map(objects, _.method('a.b.c'));
|
||||
* // => [2, 1]
|
||||
*
|
||||
* _.invokeMap(_.sortBy(objects, _.method(['a', 'b', 'c'])), 'a.b.c');
|
||||
* // => [1, 2]
|
||||
* _.map(objects, _.method(['a', 'b', 'c']));
|
||||
* // => [2, 1]
|
||||
*/
|
||||
var method = rest(function(path, args) {
|
||||
return function(object) {
|
||||
|
||||
Reference in New Issue
Block a user