public endsWith(suffix as Object) as Boolean:
Returns true if this string ends with the provided value.
When the value is a string, it is tested directly. When the value is a list, each item is tested as a candidate suffix.
True when at least one candidate matches.
assert "image.png".endsWith([".jpg", ".png", ".gif"])