Skip to content

Instantly share code, notes, and snippets.

@elliotlarson
Created July 22, 2018 04:37
Show Gist options
  • Save elliotlarson/72804fb81866fb0ffb64c587169219f0 to your computer and use it in GitHub Desktop.
Save elliotlarson/72804fb81866fb0ffb64c587169219f0 to your computer and use it in GitHub Desktop.
const characterToRemove = "Donald";
const index = characters.findIndex(c => c === characterToRemove);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment