sevensc/typescript-string-operations

Improvements

Aashiq2691 opened this issue · 2 comments

Currently there are no options to pass the string array as argument and get it formatted like below.

string[] args = ['Hello', 'World']
string sayHello = String.Format("{0}, {1}!", args)

Output : Hello, World!

Current output: Hello, World, undefined!

Is this feature will be availble any time soon.

What happens if you invoke String.Format("{0},{1}!", ...args) (three dots before args)?

Hi aequi42,

yes it works now by invoking the way you mentioned above.

Thanks a lot!