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.

evanjones

Member since
evanjones

Recent Docs Activity

View all activity
Page Date Comment

String.prototype.indexOf()


Remove a stray line break.

String.prototype.indexOf()


Previously stated that calling 'ab'.indexOf('b', -5) would return -1. It actually searches the entire string (as if 0 was passed). The ECMAScript standard section 15.5.4.7 specifies this behavior.