Joined May 2018
·

Ricky Riot

Posted to Simple String.format() in javascript over 1 year ago

This doesn't change the problem of backward compatibility, but string literals are coming to JS:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals

You might wish to amend your prototyping to match the functionality.

One thing to note is that it uses the ` string limiter rather than the single or double quotes ' "

Achievements
1 Karma
0 Total ProTip Views