kaven-basic - v6.0.0
    Preparing search index...

    Function TrimAll

    • Removes all occurrences of the specified target substring from the input string.

      Parameters

      • input: string

        The original string to process.

      • target: string

        The substring to remove from the input string.

      Returns string

      A new string with all instances of the target substring removed.

      This function will remove all occurrences of the target substring from both the start and end of the input string.

      3.0.3

      2025-06-25

    • Trims all occurrences of the specified target substring from the input string, up to a maximum number of times.

      Parameters

      • input: string

        The string to trim.

      • target: string

        The substring to remove from the input string.

      • max: number

        The maximum number of times to delete the target substring on both sides of the input string.

      Returns string

      The trimmed string with up to max occurrences of target removed.

      3.0.3

      2025-06-25

    • Removes all occurrences of the specified target substrings from the input string.

      Parameters

      • input: string

        The original string to process.

      • targets: string[]

        An array of substrings to be removed from the input string.

      Returns string

      The resulting string after all target substrings have been removed.

      3.0.3

      2025-06-25