instance method String#startsWith
String#startsWith(substring[, position]) → Boolean
- substring (String): The characters to be searched for at the start of this string.
- [position] (Number): The position in this string at which to begin
substring; defaults to 0.
Checks if the string starts with
String#startsWith acts as an ECMAScript 6 polyfill.
It is only defined if not already present in the user's browser, and it
is meant to behave like the native version as much as possible. Consult
the ES6 specification for more