Formats a string by replacing placeholders with values.
The placeholders are in the format {0}, {1}, etc.,
and the corresponding values are passed in the val array.
Parameters
str: string
The string to format, containing placeholders.
...val: string[]
The values to replace the placeholders with.
Returns string
The formatted string with values inserted.
StaticisBlank
isBlank(str:string):boolean
Checks if a string is blank (either null, undefined, or contains only whitespace).
Parameters
str: string
The string to check.
Returns boolean
Returns true if the string is blank, otherwise false.
Formats a string by replacing placeholders with values. The placeholders are in the format
{0}
,{1}
, etc., and the corresponding values are passed in theval
array.