endsWith
1.5.1

endsWith(substring) -> Boolean

Checks if the string ends with substring.

Example


'slaughter'.endsWith('laughter')
// -> true