Skip to main content

trim-newline

functionv1.7

clojure.string/trim-newline

Available in:BBCLJCLJS
(trim-newline [s])
Removes all trailing newline \n or return \r characters from string. Similar to Perl's chomp.

No examples yet. Be the first to add one!