Skip to main content
Home
Docs
Courses
Workshops
Jobs
Podcast
Sign in
Docs
Reference
ClojureScript
clojure.string
trim
trim
function
v1.7
clojure.string/trim
Available in:
BB
CLJ
CLJS
(
trim
[
s
]
)
Removes whitespace from both ends of string.
Examples
Sign in to contribute
Code
Platforms
Clojure
ClojureScript
Babashka
Submit
Cancel
No examples yet. Be the first to add one!
Categories
Strings › Manipulation
See Also
blank?
capitalize
ends-with?
escape
includes?
index-of
join
last-index-of
lower-case
replace
← starts-with?
trim-newline →
All
⌘1
Clojure
⌘2
ClojureScript
⌘3
Babashka
⌘4