Skip to content

Instantly share code, notes, and snippets.

@ABooooo
Created September 7, 2021 11:22
Show Gist options
  • Save ABooooo/c3964e00dff6aff2ddd6623567e6a583 to your computer and use it in GitHub Desktop.
Save ABooooo/c3964e00dff6aff2ddd6623567e6a583 to your computer and use it in GitHub Desktop.
// myArray = is an accual array of objects
// param = is a parameter in object
// value = is what we are looking for
var index = myArray.findIndex((obj => obj.param == value));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment