DEV Community

Discussion on: How to Trim String in JavaScript

Collapse
 
wrldwzrd89 profile image
Eric Ahnell

Thank you Samantha - such a common need, and easy to get lost in the weeds when the solution is right there.

Collapse
 
samanthaming profile image
Samantha Ming

totally! JS is constantly improving, so often you don't have to look too far and they probably have a built-in solution. That's why I keep sharing, it's all about expanding our toolbox...we might not need it right away, but when we do, we can just grab it from our toolbox. Thanks Eric, happy you found the post helpful πŸ™‚