removeWhitespace function

String removeWhitespace(
  1. String s
)

Remove all whitespace from a String

Implementation

String removeWhitespace(String s) {
  if (s.isEmpty) {
    return '';
  }
  return concatStrings(words(s));
}