Help us test MDN's new front-end: https://discourse.mozilla.org/t/help-us-test-mdns-new-react-front-end-beta/42593

luc4leone (luca leone)

Interests

Member since
luc4leone

Recent Docs Activity

View all activity
Page Date Comment

Array.prototype.lastIndexOf()


Array.prototype.findIndex()


Revert to revision of 2018-10-21 08:42:26.027199 by mattmcginnis

Array.prototype.findIndex()


An empty array can have length > 0, if it is a sparse array. According to me, writing that findIndex returns -1 "if the array's length = 0", although correct, is a bit too specific.

Array.prototype.filter()