JavaScript (ES6), TypeScript
I have the localized resources of string type. I need to use these strings as a format. This is the example of my localized string: getValue: The '{0}' key not found in the '{1}' map. I need replace {0} and {1} by the values. Is exist any simple way to do it without using of replace() or indexOf() + splice()?
P.S. Template literals cannot be used in this case, unfortunately.
printfformatting method because reasons. Just use handlebars like everybody else.