startsWith
1.5.1

startsWith(substring) -> Boolean

Checks if the string starts with substring.

Example


'Prototype JavaScript'.startsWith('Pro');
//-> true