logo
logo

Find First Even Number using find()

Find First Even Number using find()

Write a function
findFirstEvenNumber
that takes an array of objects as input, where each object has a
value
property that is a number, and returns the first object with an even
value
using the
find()
method.
Console
Submit
Solution
00:00