• Return a new string with the content of str where all occurrences of pattern are replaced by replacement.

    Parameters

    • str: string
    • pattern: string
    • replacement: string

    Returns string