This is a fairly common requirement.
It is as simple as input.replace(/\s\s+/g, ''), but:
A simple _.despace function would be convenient.
Hi @gajus, thanks for the suggestion!
This looks like something that could _.words(string).join(' ') in some cases. I'd like to hold off on adding until I get a better gauge on user demand for such a method. Until then _.mixin.
It's been 3 years since last comment. I think adding this feature should be re-evaluated.
My suggestion - Please add this.
4 years. Could use a simple despace.
Most helpful comment
It's been 3 years since last comment. I think adding this feature should be re-evaluated.
My suggestion - Please add this.