Methods
-
<static> format( str, arg [, ...argN ] ) → {string}
Formats the supplied
str
with the given replacement args and there indexes. -
Parameters
Name Type Attributes Description str
string The format string.
arg
* The first of argument to format into the string.
argN
* <optional>
<repeatable>Any number of additional arguments.
Returns
Examples
Basic usage:
var result = MyApi.utils.format( "Hello {0}! My name is {1}.", "Jill", "Jack" ); // => "Hello Jill! My name is Jack."
Details