logo
logo

Find Index of First Negative Number using findIndex()

Find Index of First Negative Number using findIndex()

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