You can use the findIndex() method on Arrays in Javascript to search through an array and find the index of an element which meets/satisfies a testing condition that you pass in through a function.
For your reference:
https://developer.mozilla.org/en-US/d...
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
In questa pagina del sito puoi guardare il video online Array 'findIndex' method in Javascript (Array.prototype.findIndex) della durata di ore minuti seconda in buona qualità , che l'utente ha caricato dcode 22 dicembre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 17,970 volte e gli è piaciuto 271 spettatori. Buona visione!