odin-javascript-exercises/removeFromArray/removeFromArray.js
2017-12-15 12:56:14 -06:00

6 lines
152 B
JavaScript

var removeFromArray = function(...args) {
const array = args[0]
return array.filter(val => !args.includes(val))
}
module.exports = removeFromArray