JavaScript Array.findIndex()