klyn.String.endsWith
method

    public endsWith(suffixes as IList<String>) as Boolean:

Description

Returns true if this string ends with at least one suffix from the provided list.

Parameters

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

Returns

True when one of the suffixes matches the end of this string.

Example

    assert "image.png".endsWith([".jpg", ".png", ".gif"])
    assert "image.png".endsWith(i:[".jpg", ".png", ".gif"])