MDN wants to learn about developers like you: https://qsurvey.mozilla.com/s3/MDN-dev-survey

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.