Simplify _.method example. [ci skip]

This commit is contained in:
John-David Dalton
2016-03-13 16:35:52 -07:00
parent 65fd579ed2
commit 6f9b1b1822

View File

@@ -14130,8 +14130,8 @@
* _.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) {