Skip to content

Commit c4cbfe4

Browse files
committed
committing remaining changes
1 parent 1b1d2c4 commit c4cbfe4

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

‎Sprint-1/fix/median.js‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
// Hint: Please consider scenarios when 'list' doesn't have numbers (the function is expected to return null)
66
// or 'list' has mixed values (the function is expected to sort only numbers).
77

8-
/*function calculateMedian(list) {
9-
const middleIndex = Math.floor(list.length / 2);
10-
const median = list.splice(middleIndex, 1)[0];
11-
return median;
12-
}*/
138
function calculateMedian(list){
149
if(!Array.isArray(list)){
1510
return null;

‎Sprint-1/refactor/includes.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// Refactor the implementation of includes to use a for...of loop
2-
32
function includes(list, target) {
43
for(const element of list){
54
if(element === target ){

0 commit comments

Comments
 (0)