@technobuddha > library > String > Construction
Function: quote()
ts
function quote(input: string, options: QuoteOptions): string;Defined in: quote.ts:27
Surround text with quotes
Parameters
| Parameter | Type | Description |
|---|---|---|
input | string | The text to surround |
options | QuoteOptions | see QuoteOptions |
Returns
string
text surrounded by quotes
Default Value
ts
quote double-quote (")Default Value
escape escapeJS