Removes all whitespace characters from a string, including normal, Unicode, zero-width spaces, and HTML entities.
The input string.
The string with all whitespace removed.
1.2.0
trimAll(" hello world "); // "helloworld"trimAll(" a b c "); // "abc"trimAll("\u200Bfoo\u00A0bar"); // "foobar" Copy
trimAll(" hello world "); // "helloworld"trimAll(" a b c "); // "abc"trimAll("\u200Bfoo\u00A0bar"); // "foobar"
Removes all whitespace characters from a string, including normal, Unicode, zero-width spaces, and HTML entities.