suffix?

check if string ends with given suffix


Parameters

suffix? string :string
        suffix :string :regex

Returns

  • :logical

Examples

copy
suffix? "hello" "lo" ; => true suffix? "boom" "lo" ; => false

Related