A Quick Look at the find() Method in JavaScript
(╯°□°)╯ .find()
find() is used to find an element that returns true depending on the condition we have.
const myArr = [1, 4, 6, 9]
const useFind = myArr.find(el => el === 4)
// 4
In the example above we use find() to return the element thats === t...
davidbell.hashnode.dev2 min read
Lize du Plessis
Learning how to code
Very helpful and explained well (step-by step). Thank you!!