MCPcopy Create free account
hub / github.com/WiseLibs/better-sqlite3 / isStringArray

Function isStringArray

lib/methods/table.js:190–195  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

188const identifier = str => `"${str.replace(/"/g, '""')}"`;
189const defer = x => () => x;
190const isStringArray = (arr) => {
191 for (let i = 0; i < arr.length; ++i) {
192 if (typeof arr[i] !== 'string') return false;
193 }
194 return true;
195};

Callers 1

parseTableDefinitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected