We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f2acd commit e219df5Copy full SHA for e219df5
examples/string_47triml.janet
@@ -0,0 +1,8 @@
1
+# trim leading/left side whitespace
2
+(string/triml " foo ") # -> "foo "
3
+
4
+# default whitespace includes " \t\r\n\v\f"
5
+(string/triml "\t bar\n\r\f") # -> "bar\n\r\f"
6
7
+# provide custom set of characters to triml
8
+(string/triml "_.foo_bar. \n" " ._\n") # -> "foo_bar. \n"
0 commit comments