@bytebury/sauce - v1.13.0
    Preparing search index...

    Function trim

    • Trims the whitespace from the beginning and the end. This is an alias for .trim(). Useful for when you're mapping over lists.

      Parameters

      • text: string

      Returns string

      This is null | undefined safe. If you pass null | undefined then this will return "".

      trim(null); // ""
      trim(" HELLO WORLD \n"); // ""
      [' hello ', ' world '].map(trim); // ['hello', 'world'];