Skip to content

@technobuddha > library > String > Construction

Function: quote()

ts
function quote(input: string, options: QuoteOptions): string;

Defined in: quote.ts:27

Surround text with quotes

Parameters

ParameterTypeDescription
inputstringThe text to surround
optionsQuoteOptionssee QuoteOptions

Returns

string

text surrounded by quotes

Default Value

ts
quote double-quote (")

Default Value

escape escapeJS