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

Function arrayAppender

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

Source from the content-addressed store, hash-verified

85}
86
87function arrayAppender(array, ...values) {
88 const offset = array.length;
89 for (let i = 0; i < values.length; ++i) {
90 array[offset + i] = values[i];
91 }
92}
93
94function rowFactory(...keys) {
95 if (!keys.includes('__proto__')) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected