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

    Function trim

    • Returns a string that trimmed from the given string

      Parameters

      • Optionaltext: string | null

        The string to trim

      • OptionalemptyAsNull: boolean

        Whether to return null if the trimmed result is empty

      Returns string | null | undefined

      the trimmed string value from the given string

      David Hsing

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