Skip to content

Commit e5fe4a0

Browse files
committed
Got rid of excessive newlines in task/sum-many-brackets sandbox code.
1 parent f20fb43 commit e5fe4a0

File tree

2 files changed

+1
-5
lines changed
  • 1-js/06-advanced-functions/06-function-object/5-sum-many-brackets/_js.view

2 files changed

+1
-5
lines changed

1-js/06-advanced-functions/06-function-object/5-sum-many-brackets/_js.view/source.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
function sum(a){
2-
32
// Your code goes here.
43

54
}

1-js/06-advanced-functions/06-function-object/5-sum-many-brackets/_js.view/test.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@ describe("sum", function(){
1414
[0, 1, 2, 3, 4, 5],
1515
];
1616

17-
for (let argumentList of testArgumentLists){
18-
17+
for (let argumentList of testArgumentLists){
1918
it(makeTestCaseName(argumentList), function(){
2019
assert.equal(traditionalSum(argumentList), chainCallSum(argumentList));
2120
});
2221
}
23-
2422
});
2523

26-
2724
function traditionalSum(arr){
2825
return arr.reduce(
2926
function(accumulator, item){

0 commit comments

Comments
 (0)