MDN wants to talk to developers like you: https://qsurvey.mozilla.com/s3/8d22564490d8

krennecke (Klaus Rennecke)

Member since
krennecke

Recent Docs Activity

View all activity
Page Date Comment

String.prototype.startsWith()


Polyfill: For small values of position (including zero), using lastIndexOf avoids searching the full string for a mismatch.