JanetDocsI'm feeling luckyGithub sign in

string/trim



    cfunction

    (string/trim str &opt set)
    
    Trim leading and trailing whitespace from a byte sequence. If the
    argument set is provided, consider only characters in set to be
    whitespace.


1 exampleSign in to add an example
Loading...
(string/trim " foo ")  # => "foo"
(string/trim "_!_foo_!_" "_!")  # => "foo"
cellularmitosis