• Replaces all occurrences of a string in the input string.

    Returns

    The input string with all occurrences of from replaced with to.

    Throws

    If value, from, or to are not strings.

    Parameters

    • value: string

      The input string.

    • from: string

      The string to be replaced.

    • to: string

      The string to replace all occurrences of from.

    Returns string

Generated using TypeDoc