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

Function step

test/33.database.aggregate.js:144–144  ·  view source on GitHub ↗
(ctx, ...args)

Source from the content-addressed store, hash-verified

142 });
143 it('should accept a "varargs" option', function () {
144 const step = (ctx, ...args) => args.reduce((a, b) => a * b, 1) + ctx;
145 Object.defineProperty(step, 'length', { value: '-2' });
146 this.db.aggregate('agg', { varargs: true, step });
147 expect(this.get('agg()')).to.equal(1);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected