Replaces placeholders in a string with corresponding values.
`formatStr("hello {1} world {0} foo {}", 1,2,3) // hello 2 world 1 foo 3` Copy
`formatStr("hello {1} world {0} foo {}", 1,2,3) // hello 2 world 1 foo 3`
The string containing placeholders.
Rest
The values to replace the placeholders with.
Replaces placeholders in a string with corresponding values.
Example