Trim-whitespace ⬜️
Last updated
Was this helpful?
Last updated
Was this helpful?
A common function for trimming whitespace without regex!
yarn add @common-utilities/trim-whitespace -D
trimWhitespace(' This is some really crazy. string. ')
// This is some really crazy. string.
No cruft. No bloat. No dependencies.
Simple, typed, functional, documented, and tested javascript utility functions.
View other common utilities on Github.