Created
September 7, 2021 11:22
-
-
Save ABooooo/c3964e00dff6aff2ddd6623567e6a583 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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