Skip to main content

CommonStringReplacer

Callable

  • CommonStringReplacer(func, replacement): (match, ...args) => string

  • A decorator for converting the variadic parameter of String.replace functions into something more sensible


    Parameters

    Returns (match, ...args) => string

      • (match, ...args): string
      • Parameters

        • match: string
        • rest...args: any[]

        Returns string