mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Rename variable sum in doc examples to total. [ci skip]
This commit is contained in:
@@ -933,8 +933,8 @@
|
||||
* var wrapped = _([1, 2, 3]);
|
||||
*
|
||||
* // returns an unwrapped value
|
||||
* wrapped.reduce(function(sum, n) {
|
||||
* return sum + n;
|
||||
* wrapped.reduce(function(total, n) {
|
||||
* return total + n;
|
||||
* });
|
||||
* // => 6
|
||||
*
|
||||
@@ -6920,8 +6920,8 @@
|
||||
* @returns {*} Returns the accumulated value.
|
||||
* @example
|
||||
*
|
||||
* _.reduce([1, 2], function(sum, n) {
|
||||
* return sum + n;
|
||||
* _.reduce([1, 2], function(total, n) {
|
||||
* return total + n;
|
||||
* });
|
||||
* // => 3
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user