Fix _.maxBy/_.minBy doc example. [ci skip]

This commit is contained in:
Abhas Tandon
2016-01-13 18:05:18 +05:30
committed by John-David Dalton
parent 1ef4807a8e
commit d0d86aecf8

View File

@@ -13634,7 +13634,7 @@
*
* var objects = [{ 'n': 1 }, { 'n': 2 }];
*
* _.maxBy(objects, function(o) { return o.a; });
* _.maxBy(objects, function(o) { return o.n; });
* // => { 'n': 2 }
*
* // using the `_.property` iteratee shorthand
@@ -13702,7 +13702,7 @@
*
* var objects = [{ 'n': 1 }, { 'n': 2 }];
*
* _.minBy(objects, function(o) { return o.a; });
* _.minBy(objects, function(o) { return o.n; });
* // => { 'n': 1 }
*
* // using the `_.property` iteratee shorthand