Replaces all occurrences of keys in the replacements object with their corresponding values in the template string and returns the resulting string.
replacements
template
The input template string with all occurrences of the keys in replacements replaced with their corresponding values.
If template is not a string.
The input template string.
An object containing key-value pairs of strings to be replaced in the template string.
Generated using TypeDoc
Replaces all occurrences of keys in the
replacementsobject with their corresponding values in thetemplatestring and returns the resulting string.Returns
The input template string with all occurrences of the keys in
replacementsreplaced with their corresponding values.Throws
If
templateis not a string.