The 'indexOf' array method returns the index position of the array where the supplied value is found. If the item is not found, -1 is returned. Using this method instead of creating a loop and searching for an element yourself can save you time and make your code cleaner.
En esta página del sitio puede ver el video en línea Using the JavaScript indexOf Array Method de Duración hora minuto segunda en buena calidad , que subió el usuario Covalence 08 mayo 2018, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 3,681 veces y le gustó 19 a los espectadores. Disfruta viendo!