Function
string.FormatArgs
A better string.Format, replace <code>{num}</code> by the corresponding vararg in a string
Syntax
string.FormatArgs(args)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
args
|
any... | — | The args |
Returns
- string
Examples
local str = "Hello {2} I'm {1}",local new_str = str:FormatArgs("a noob", "world!")