Skip to content

Instantly share code, notes, and snippets.

@rafaelmaeuer
Last active October 9, 2017 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelmaeuer/0e19e51ea85b093f2b3fea5731f3593e to your computer and use it in GitHub Desktop.
Save rafaelmaeuer/0e19e51ea85b093f2b3fea5731f3593e to your computer and use it in GitHub Desktop.
JavaScript indexOf method in an object array? - From https://stackoverflow.com/questions/8668174/indexof-method-in-an-object-array
var indexOfStevie = myArray.findIndex(i => i.hello === "stevie");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment