MCPcopy Create free account
hub / github.com/porsager/postgres / arrayEscape

Function arrayEscape

cjs/src/types.js:235–239  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

233const escapeQuote = /"/g
234
235function arrayEscape(x) {
236 return x
237 .replace(escapeBackslash, '\\\\')
238 .replace(escapeQuote, '\\"')
239}
240
241const arraySerializer = module.exports.arraySerializer = function arraySerializer(xs, serializer, options, typarray) {
242 if (Array.isArray(xs) === false)

Callers 1

types.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected