mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-06-05 15:09:09 +09:00
remove timer and simon
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
var removeFromArray = function() {
|
||||
|
||||
var removeFromArray = function(...args) {
|
||||
const array = args[0]
|
||||
return array.filter(val => !args.includes(val))
|
||||
}
|
||||
|
||||
module.exports = removeFromArray
|
||||
|
||||
Reference in New Issue
Block a user