endsWith

function, since version 1.1.5
categories: strings

endsWith(str, suffix)

returns true if input string str ends with suffix

parameters

return type

boolean

examples

endsWith('hello there', 'hello')       
endsWith('hello there', 'e')       

returns

false
true

Related functions:

Update your privacy settings