melonjs
    Preparing search index...

    Function replaceAll

    • Replace all instances of a substring in a string, using a regular expression or search string.

      Parameters

      • searchValue: string | RegExp

        A string to search for.

      • replaceValue: string

        A string containing the text to replace for every successful match of searchValue in this string.

      Returns string

    • Replace all instances of a substring in a string, using a regular expression or search string.

      Parameters

      • searchValue: string | RegExp

        A string to search for.

      • replacer: (substring: string, ...args: any[]) => string

        A function that returns the replacement text.

      Returns string