Returns true if the second parameter is a prefix of the first one.
String
startWith(<parameters>)
Parameter | Type |
---|---|
string | string |
prefix | string |
startWith(<string>,<string>)
Return a boolean.
startWith("Hello World", "Hello")
Returns true.
startWith("Hello World", "World")
Returns false.