JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

string/trimr

core-api


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

    (string/trimr str &opt bytes)

    Trim trailing whitespace from a byte sequence `str`. If argument 
    `bytes` is provided, treat only characters in `bytes` as 
    whitespace.


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