-
JavaScript Problem: Searching an Array for a Value
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: http://www.allthingsjavascript.com/youtube.html Take the Learn Modern JavaScript: Getting Started or the…