@yookue/ts-lang-utils
    Preparing search index...

    Function trim

    • Returns a string that trimmed from the given string

      Parameters

      • Optionaltext: null | string

        the string to trim

      • OptionalemptyAsNull: boolean

        whether to return null if the trimmed result is empty

      Returns undefined | null | string

      the trimmed string value from the given string

      David Hsing

      trim("foobar", true);    // 'foobar'