The index of the first item that passes a test.
Group: Array
array.findIndex(fn)
← All of JavaScript Reference