NodeJS -Satz von Leerzeichen trimmen

newString = string.replace(/\s+/g,''); // "thiscontainsspaces"
Blue-eyed Bug