Replaces consecutive whitespaces of a String with a single space
Compact every duplicate whitespaces
const s = compactWhitespace(' a b ');console.log(s); // ' a b '
the compacted String
String
Generated using TypeDoc
Replaces consecutive whitespaces of a String with a single space
Example
Compact every duplicate whitespaces
Returns
the compacted
String