endsWith
function, since version 1.1.5
categories: strings
endsWith(str, suffix)
returns true if input string str
ends with suffix
parameters
- str: string - input string
- suffix: string - suffix
return type
boolean
examples
endsWith('hello there', 'hello')
endsWith('hello there', 'e')
returns
false
true