Quote text and append it to an array builder.
Encloses the text in double quotes and escapes any backslashes and double-quotes within it.
String array builder.
Text to quote.
The same builder.
builder or text is null or undefined.
builder
text
Quote text and append it to an object builder.
Builder with an append() method.
append()
Quote text and append it to an array builder.
Encloses the text in double quotes and escapes any backslashes and double-quotes within it.