Last active
November 6, 2019 17:33
-
-
Save pooyagolchian/973750eecfe07fd6bf7c7db835405a3c to your computer and use it in GitHub Desktop.
Seek and Destroy Algorithm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const destroyer = (arr, ...removeValue) => { | |
return arr.filter(item => !removeValue.includes(item)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment