In codesandbox for example [1,2,3].findLastIndex(n => n === 2)
has an error saying that the method findLastIndex
(I've checked and the same is true for findLast
) does not exist on a number array. I've tried the same with other types of arrays and it;s the same.
It is not a browser problem since trying that in the browser console works.