6 lines
175 B
JavaScript
6 lines
175 B
JavaScript
const removeFromArray = function (array, ...remove) {
|
|
return array.filter(item => !remove.includes(item))
|
|
}
|
|
|
|
// Do not edit below this line
|
|
module.exports = removeFromArray
|