cleanBlanks

cleanBlanks ( string txt ) : string

remove multiple blanks in string

Example


console(cleanBlanks("Hello   world   ")) // -> Hello world

Parameters

txt

The text to clean.