Options
All
  • Public
  • Public/Protected
  • All
Menu

Module string/trim

Index

References

Functions

References

Renames and re-exports trim

Functions

  • trim(str?: string): string
  • Removes leading and trailing whitespace from str.

    example
     trim('  abc  '); //=> 'abc'
    

    Parameters

    • str: string = ''

      The string to trim.

    Returns string

    Returns the trimmed string.

Generated using TypeDoc