Fix a bug with expanding function args by passing group opts properly
This commit is contained in:
1 parent
fae314bee0
commit
98fef67b4e
4 files changed
+27
-18
No files matched your search
@@ -94,9 +94,12 @@ function reduce_test() {
|
||||
return previousValue + currentValue + array[index];
|
||||
});
|
||||
|
||||
[ 0, 1, 2, 3, 4 ].reduce(function(previousValue, currentValue, index, array) {
|
||||
[ 0, 1, 2, 3, 4 ].reduce(
|
||||
function(previousValue, currentValue, index, array) {
|
||||
return previousValue + currentValue + array[index];
|
||||
}, 10);
|
||||
},
|
||||
10
|
||||
);
|
||||
|
||||
var total = [ 0, 1, 2, 3 ].reduce(function(a, b) {
|
||||
return a + b;
|
||||
|
||||
Reference in new issue
Block a user