• Monday , 25 May 2020

JavaScript Problem: Searching an Array for a Value

Code Canyon

Searching an array is a common task. In the past we have relied on indexOf and lastIndexOf. As of ES6 there are two new array methods: findIndex and find. This tutorial covers indexOf, lastIndexOf, findIndex and find.
For a complete list of all our tutorials:

Take the Learn Modern JavaScript: Getting Started or the Learn Modern JavaScript: Advanced Topics courses at a huge discount:

To view a tutorial on the ES5 Array methods: https://youtu.be/RePO4I6PzSA

Original source

3d Ocean

Related Posts


  1. rickyu1978
    December 28, 2018 at 13:07

    Concise and to the point! Do you have a video on comparison of two arrays, finding duplicates, removing them and concatenating them? I am trying to loop over a array that splices itself (poping off duplicate value), obviously this doesnt work. Is it okay to mutate a array or create a new array due to "immutability programming styles"

  2. Ryan M
    December 28, 2018 at 13:07

    well done. clear explanation. purchased both of your js courses on udemy after watching this. thanks.

  3. Sebastian Kumlin
    December 28, 2018 at 13:07

    Good explanation

  4. Manolis Tzitzikas
    December 28, 2018 at 13:07

    Very good explanation!

  5. seenuvasan V
    December 28, 2018 at 13:07


Leave A Comment

You must be logged in to post a comment.