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

Function firstIsString

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

Source from the content-addressed store, hash-verified

185const END = module.exports.END = {}
186
187function firstIsString(x) {
188 if (Array.isArray(x))
189 return firstIsString(x[0])
190 return typeof x === 'string' ? 1009 : 0
191}
192
193const mergeUserTypes = module.exports.mergeUserTypes = function(types) {
194 const user = typeHandlers(types || {})

Callers 1

handleValueFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected