This method lets you determine whether or not a string ends with another string. This method is case-sensitive.
The value to be checked
The characters to be searched for at the end of value string.
value
Optional
If provided, it is used as the length of value. Defaults to value.length.
This method lets you determine whether or not a string ends with another string. This method is case-sensitive.