Skip to main content

endsWith

Tests to see if the first string ends with the specified suffix. If either the string or the suffix are null, it returns false

Syntax

boolean = endsWith(str, suffix)

Example

print endsWith("Patent", "tent")
> true