1.0.0 • Published 6 years ago
string.prototype.format v1.0.0
string.prototype.format
Using string.prototype.format
you'll be able to use a method within' the String's prototype to format the string. For example
'{0} {1}!'.format('Hello', 'World')
Which would result in Hello World!
.
The code has been posted on StackOverflow available here.
1.0.0
6 years ago