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

    Function RemoveAllSubStrings

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

      Parameters

      • str: string

        The original string from which substrings will be removed.

      • ...subStrings: string[]

        One or more substrings to remove from the original string.

      Returns string

      The resulting string after all specified substrings have been removed.

      If no substrings are provided, the original string is returned unchanged. If a substring is an empty string, it is ignored.

      RemoveAllSubStrings("hello world", "l", "o"); // returns "he wrd"
      

      4.0.0

      2021-12-09