Javascript Array.find/findIndex
find returns the first element that matches the given condition.
And findIndex returns the index of the first element that matches the given condition.