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