• Can trim any character or set of characters from the ends of a string. Uses a Regex escapement to replace them with empty.

    Returns

    Parameters

    • source: string
    • Optional chars: string | string[]

      A string or array of characters desired to be trimmed.

    • Optional ignoreCase: boolean

    Returns string

Generated using TypeDoc