findIndex() returns the index of the first element that passes a test (provided by a function).
findIndex() is not supported in Internet Explorer.