formatStringFromArgs MethodProtected

Helper method that formats string with provided arguments where the place holders are in the the format '{0}', '{1}', etc.

formatStringFromArgs(text: string, args: ArrayLike<string>, baseIndex: number0): string

Parameter Type Description
text string The text to format.
args ArrayLike<string> The arguments to place in the text.
baseIndex number The base index for the args, used for validation (typically 0, which is the default).

Returns - string

Defined in

Last Updated: 17 December, 2024