- :logical
suffix?
check if string ends with given suffix
Parameters
suffix? string :string suffix :char :string :regex
Returns
Examples
copysuffix? "hello" "lo" ; => true suffix? "boom" "lo" ; => false
copysuffix? "hello" {/\w/} ; => true suffix? "world" {/\d/} ; => false
copysuffix? "hello" 'o' ; => true suffix? "world" 'o' ; => false