mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Simplify _.method example. [ci skip]
This commit is contained in:
@@ -14130,8 +14130,8 @@
|
|||||||
* _.map(objects, _.method('a.b.c'));
|
* _.map(objects, _.method('a.b.c'));
|
||||||
* // => [2, 1]
|
* // => [2, 1]
|
||||||
*
|
*
|
||||||
* _.invokeMap(_.sortBy(objects, _.method(['a', 'b', 'c'])), 'a.b.c');
|
* _.map(objects, _.method(['a', 'b', 'c']));
|
||||||
* // => [1, 2]
|
* // => [2, 1]
|
||||||
*/
|
*/
|
||||||
var method = rest(function(path, args) {
|
var method = rest(function(path, args) {
|
||||||
return function(object) {
|
return function(object) {
|
||||||
|
|||||||
Reference in New Issue
Block a user