Find Index of First Negative Number using findIndex()
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.