endsWith

Determines if a string ends with the specified string pattern.

Syntax

endsWith(string, endPattern)

Parameters

string

Specifies the case-sensitive string to be checked.

endPattern

Specifies the case-sensitive pattern to look for at the end of string.

Returns

Returns 1 if the string ends with endPattern.