Skip to content

Instantly share code, notes, and snippets.

@SolidShake
Last active December 11, 2015 18:56
Show Gist options
  • Select an option

  • Save SolidShake/d9224f4e94d2de12da59 to your computer and use it in GitHub Desktop.

Select an option

Save SolidShake/d9224f4e94d2de12da59 to your computer and use it in GitHub Desktop.
This method returns -1 if the value to search for never occurs.
Array.prototype.remove_ = (integer_list, values_list) => integer_list.filter(v => values_list.indexOf(v) == -1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment