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.
Watch video Using the JavaScript indexOf Array Method online without registration, duration hours minute second in high quality. This video was added by user Covalence 08 May 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,681 once and liked it 19 people.