Fix typo in _.sumBy examples. [ci skip]

This commit is contained in:
fdegiuli
2015-10-26 16:37:29 -04:00
committed by John-David Dalton
parent e331ea5d82
commit accb8e9b07

View File

@@ -12963,11 +12963,11 @@
* { 'n': 6 } * { 'n': 6 }
* ]; * ];
* *
* _.sum(objects, function(o) { return o.n; }); * _.sumBy(objects, function(o) { return o.n; });
* // => 10 * // => 10
* *
* // using the `_.property` callback shorthand * // using the `_.property` callback shorthand
* _.sum(objects, 'n'); * _.sumBy(objects, 'n');
* // => 10 * // => 10
*/ */
function sumBy(array, iteratee) { function sumBy(array, iteratee) {