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

Function arrayAppender

lib/database.js:98–103  ·  view source on GitHub ↗
(array, ...values)

Source from the content-addressed store, hash-verified

96}
97
98function arrayAppender(array, ...values) {
99 const offset = array.length;
100 for (let i = 0; i < values.length; ++i) {
101 array[offset + i] = values[i];
102 }
103}
104
105function rowFactory(...keys) {
106 if (!keys.includes('__proto__')) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected