time-to-botec/js/node_modules/@stdlib/string/format/docs/repl.txt
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

32 lines
552 B
Plaintext

{{alias}}( str, ...args )
Insert supplied variable values into a format string.
Parameters
----------
str: string
Input string.
args: ...any
Variable values.
Returns
-------
out: string
Formatted string.
Examples
--------
> var out = {{alias}}( 'Hello, %s!', 'World' )
'Hello, World!'
> out = {{alias}}( '%s %s', 'Hello', 'World' )
'Hello World'
> out = {{alias}}( 'Pi: %.2f', {{alias:@stdlib/constants/float64/pi}} )
'Pi: 3.14'
See Also
--------