src code

instance method String#startsWith

String#startsWith(substring) → Boolean

Checks if the string starts with substring.

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