klyn.String.startsWith
method

    public startsWith(prefixes as IList<String>) as Boolean:

Description

Returns true if this string starts with at least one prefix from the provided list.

Parameters

Parameter | Description
--- | ---
`prefixes` | Candidate prefixes to test in order.

Returns

True when one of the prefixes matches the beginning of this string.

Example

    assert "Hello World".startsWith(["Hi", "Hello"])
    assert "Hello World".startsWith(i:["Hi", "Hello"])