odin-javascript-exercises/04_removeFromArray/removeFromArray.js

7 lines
175 B
JavaScript
Raw Permalink Normal View History

2023-06-19 23:03:48 +00:00
const removeFromArray = function (array, ...remove) {
return array.filter(item => !remove.includes(item))
}
2017-08-24 13:12:11 +00:00
// Do not edit below this line
2023-06-19 23:03:48 +00:00
module.exports = removeFromArray