Tweakr
    Preparing search index...

    Function stripWhitespace

    • Removes all whitespace characters from a string.

      Parameters

      • str: string

        The input string.

      Returns string

      A new string with all spaces, tabs, and line breaks removed.

      1.1.0

      stripWhitespace("  Hello  World \n "); // "HelloWorld"
      stripWhitespace(" a b c "); // "abc"