startsWith :: String

startsWith(substring) -> Boolean

 

Checks if the string starts with substring.

 

'Prototype JavaScript'.startsWith('Pro');

//-> true

 

 


Prototype API 1.5.0 - prototypejs.org