Remove leading, trailing, and repeated whitespace from a string
npm install condense-whitespace> Remove leading, trailing, and repeated whitespace from a string
```
$ npm install condense-whitespace
`js
import condenseWhitespace from 'condense-whitespace';
condenseWhitespace(' foo bar baz ');
//=> 'foo bar baz'
`
- trim-repeated - Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz`