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

Function arrayEscape

cf/src/types.js:236–240  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

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

Callers 1

arraySerializerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected