Skip to content

@technobuddha > library > String > Deconstruction

Function: unquote() ​

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

Defined in: unquote.ts:15

Remove surrounding quotes from text

Parameters ​

ParameterTypeDescription
inputstringThe text to surrounded by quotes
optionsQuoteOptionssee QuoteOptions

Returns ​

string

the unescaped text with quotes removed

Default Value ​

ts
quote double-quote (")

Default Value ​

ts
escape unescapeJS