@tempots/std
quote() function
Returns a quoted version of the input string.
Signature:
quote: (s: string, quoteChar?: string) => string
Parameters
Parameter |
Type |
Description |
---|---|---|
s |
string |
The input string to be quoted. |
quoteChar |
string |
(Optional) The character used for quoting. Defaults to single quote ('). |
Returns: string
The quoted string.