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!
Sur cette page du site, vous pouvez voir la vidéo en ligne Array 'findIndex' method in Javascript (Array.prototype.findIndex) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur dcode 22 décembre 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 17,970 fois et il a aimé 271 téléspectateurs. Bon visionnage!