Corrected fourth exercise
This commit is contained in:
parent
353884775e
commit
7b3d057517
|
@ -1,7 +1,9 @@
|
||||||
const removeFromArray = function(list, item) {
|
const removeFromArray = function(list, ...remove) {
|
||||||
//Remove third element from array
|
|
||||||
let remove = list.filter(item);
|
let result = list.filter(item => !remove.includes(item));
|
||||||
return list;
|
|
||||||
|
return result;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Do not edit below this line
|
// Do not edit below this line
|
||||||
|
|
Loading…
Reference in New Issue