instance method String#endsWith
String#endsWith(substring) → Boolean
Checks if the string ends with substring
.
Example
'slaughter'.endsWith('laughter')
// -> true
String#endsWith(substring) → Boolean
Checks if the string ends with substring
.
'slaughter'.endsWith('laughter')
// -> true