startsWith
1.5.1

startsWith(substring) -> Boolean

检查字符串是否以 substring 作为开头。

样例

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