Function removeSubstring

Removes specified substrings from a given text.

  • Parameters

    • text: string

      The input text to remove substrings from.

    • Rest...remove: string[]

      One or more substrings to remove from the text.

    Returns string

    • The modified text with the specified substrings removed.