JanetDocsPlaygroundI'm feeling luckyGitHub sign in

string/has-prefix?



    cfunction
    src/core/string.c on line 326, column 1

    (string/has-prefix? pfx str)

    Tests whether `str` starts with `pfx`.


1 exampleSign in to add an example
Loading...
(string/has-prefix? "project." "project.janet") # => true
sogaiuPlayground