Module: webgis4u/util/string/formatText

Members

(inner, constant) regex

Regex to test for a digit inside curly braces
Source:

Methods

(static) formatText(format, …args) → {string}

Formats a text
Parameters:
Name Type Attributes Description
format string The format
args any <repeatable>
The values that are inserted at the placeholders
Source:
Returns:
The result as string
Type
string
Example
formatText('{0} is dead, but {1} is alive!', 'ASP',
'ASP.NET'); => 'ASP is dead, but ASP.NET is alive!