This function mirrors the endsWith function from the JavaScript Standard String object. It operates on grapheme clusters instead of UTF-16 code units.
endsWith
Determines whether a string ends with the characters of another string.
String to search through
Characters to search for at the end of the string
Optional
End position where searchString is expected to be found. Default is stringLength(string)
stringLength(string)
True if it ends with searchString, false if it does not
This function mirrors the
endsWithfunction from the JavaScript Standard String object. It operates on grapheme clusters instead of UTF-16 code units.Determines whether a string ends with the characters of another string.