• Replaces all occurrences of keys in the replacements object with their corresponding values in the template string and returns the resulting string.

    Returns

    The input template string with all occurrences of the keys in replacements replaced with their corresponding values.

    Throws

    If template is not a string.

    Parameters

    • template: string

      The input template string.

    • replacements: ReplacementMap

      An object containing key-value pairs of strings to be replaced in the template string.

    Returns string

Generated using TypeDoc