mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Fix typo in _.sumBy examples. [ci skip]
This commit is contained in:
committed by
John-David Dalton
parent
e331ea5d82
commit
accb8e9b07
@@ -12963,11 +12963,11 @@
|
||||
* { 'n': 6 }
|
||||
* ];
|
||||
*
|
||||
* _.sum(objects, function(o) { return o.n; });
|
||||
* _.sumBy(objects, function(o) { return o.n; });
|
||||
* // => 10
|
||||
*
|
||||
* // using the `_.property` callback shorthand
|
||||
* _.sum(objects, 'n');
|
||||
* _.sumBy(objects, 'n');
|
||||
* // => 10
|
||||
*/
|
||||
function sumBy(array, iteratee) {
|
||||
|
||||
Reference in New Issue
Block a user