We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fedbf01 commit 33125c6Copy full SHA for 33125c6
functionalty.js
@@ -9,7 +9,7 @@ function filterArray(array, value) {
9
}
10
11
function sumOfArray(array) {
12
- return array.reduce();
+ return array.reduce((a, b) => a + b, 0);
13
14
15
function ascending(array) {
0 commit comments