endsWith

endsWith

> Functions

Determines whether a string ends with a suffix.

Parameters
Return
Examples

endsWith("Hello", "ello") // true endsWith("Hello", "Hell") // false

See as well

startsWith