endsWith
Check if the string ends with a given string.
g.endsWith('Hello', 'lo');
Parameters
s: The input string.value: The substring to look for.
See Also
- startsWith: Check if the string starts with a given string.
Check if the string ends with a given string.
g.endsWith('Hello', 'lo');
s: The input string.value: The substring to look for.