prefix?

check if string starts with given prefix


Parameters

prefix? string :string
        prefix :string :regex

Returns

  • :logical

Examples

copy
prefix? "hello" "he" ; => true prefix? "boom" "he" ; => false

Related