klyn.String.endsWith
method
public native endsWith(suffix as String) as Boolean
Description

Returns true if this string ends with the provided suffix.

Parameters
ParameterDescription
suffixSuffix to test.
Returns

True when this string ends with suffix.

Example
assert "image.png".endsWith(".png")