endsWith :: String
endsWith(substring) -> Boolean
Checks if the string ends with substring.
'slaughter'.endsWith('laughter')
// -> true
Prototype API 1.5.0 - prototypejs.org