1.0.3 • Published 3 years ago

trim-all v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

trim-all

Remove extra whitespace

JavaScript function that accepts a string. The string is returned with all whitespace runs replaced with a single space and whitespace removed from both ends of the string.

Example

trimAll(`
    Darkwing Duck
                 When there's trouble you
                                         Call DW
`);

// returns "Darkwing Duck When there's trouble you Call DW"
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago