Skip to content

Instantly share code, notes, and snippets.

@pooyagolchian
Last active November 6, 2019 17:33
Show Gist options
  • Select an option

  • Save pooyagolchian/973750eecfe07fd6bf7c7db835405a3c to your computer and use it in GitHub Desktop.

Select an option

Save pooyagolchian/973750eecfe07fd6bf7c7db835405a3c to your computer and use it in GitHub Desktop.
Seek and Destroy Algorithm
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