I'm looking for a good Javascript equivalent of the C/PHP printf() or for C#/Java programmers, String.Format() (IFormatProvider for .NET).
My basic requirement is thousand seperator format for numbers for now, but something that handles lots of combinations (including dates) would be good.
I realise Microsoft's AJAX library provides a version of String.Format() but we don't want the entire overhead of that framework.