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.

paulie4

Member since
paulie4

Recent Docs Activity

View all activity
Page Date Comment

String.prototype.startsWith()


lastIndexOf() would not work as a polyfill, since a repeated substring would have the later index returned, but startsWith() needs the earliest index.