fix: remove pre-filled test case and comment (#48519)
parent
aed40e1922
commit
1474aa588c
|
@ -46,10 +46,6 @@ Array.prototype.myMap = function(callback) {
|
|||
// Only change code above this line
|
||||
return newArray;
|
||||
};
|
||||
|
||||
// Test case
|
||||
const s = [23, 65, 98, 5];
|
||||
const doubled_s = s.myMap(item => item * 2);
|
||||
```
|
||||
|
||||
# --solutions--
|
||||
|
|
|
@ -42,10 +42,6 @@ Array.prototype.myFilter = function(callback) {
|
|||
// Only change code above this line
|
||||
return newArray;
|
||||
};
|
||||
|
||||
// Test case
|
||||
const s = [23, 65, 98, 5];
|
||||
const odd_s = s.myFilter(item => item % 2 === 1);
|
||||
```
|
||||
|
||||
# --solutions--
|
||||
|
|
Loading…
Reference in New Issue