Skip to content

Commit 60e05a7

Browse files
author
Enice-Codes
committed
modified a line 25
1 parent a901b1f commit 60e05a7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎Sprint-1/fix/median.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ function calculateMedian(list) {
2222
} else {
2323
return numbersOnly[middleIndex];
2424
}
25-
const median = numbersOnly.splice(middleIndex, 1)[0]; //
26-
return median;
25+
return numbersOnly.splice(middleIndex, 1)[0];
2726
}
2827

2928
module.exports = calculateMedian;

‎nano.14880.save‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)