You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Formats a string, using the context object (an Object or an Array). Template tags in the
string (like {key}) are replaced with properties from the context object.
Note that keys can be property names, or numeric indices, or nested properties such as {0.name},
{person.name}, {person.address.zip}.
patch()
Calling this function, will add a format method to the String.prototype whose calling signature is one of:
string.format(context)
or
string.format(arg0, arg1, arg2, ...)
The context must be an Object or Array type, or else type 2 is used, where each argument is associated with a numeric replacement tag in the string ({0}, {1}, etc.).