SyntaxFix
Write A Post
Hire A Developer
Questions
I am using TypeScript version 3.6 and I can do like this:
3.6
let templateStr = 'This is an {0} for {1} purpose'; const finalStr = templateStr.format('example', 'format'); // This is an example for format purpose