klyn.String.startsWith
method
public native startsWith(prefix as String) as Boolean
Description

Returns true if this string starts with the provided prefix.

Parameters
  • prefix Prefix to test.
Returns

True when this string starts with prefix.

Example
assert "Hello World".startsWith("Hello")