Hi all. This is somewhat the equivalent of .NET String.Format(String, Args);
Usages:
'Hello {0}'.format('DaniWeb!');
String.format('{0} {1} {2}', 'Hi', 'Again', 'Good Fella');
String.format('Hello {prefix} {name}', { prefix: 'Sr.', name: 'HeyHeyHey'});
I know there's lots of String.formats out there(some simpler and some more complex), but this is the one i've been using for the past years and it works really well for me.
Remarks: I didn't write this from scratch, couple years ago I put together a couple of simpler sinnepts to make this one. But I couldn't find the sources to give the deserved credits.
Hope it may be helpful.
Cheers!