Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

BendingBender

Registrato in data
BendingBender

Aggiornamenti alla documentazione

Mostra tutte le attività
Pagina Data Commento

Array.prototype.find()


adds strict mode to prevent getting window obj in 'this' reference when called as function

Array.prototype.findIndex()


adds strict mode to prevent getting window obj in 'this' reference when called as function

Array.prototype.includes()


added throwing TypeErrors when method is called on null or undefined, according to spec

Array.prototype.findIndex()


changed incorrect check `===null` to `==null` to test for `null` *and* `undefined` (even the error that is being thrown by this code states that it is a check for null and undefined)