MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / push

Function push

test/unit/stream-id-stack-tests.js:179–187  ·  view source on GitHub ↗
(stack, initialValue, length)

Source from the content-addressed store, hash-verified

177}
178
179function push(stack, initialValue, length) {
180 if (Array.isArray(initialValue)) {
181 initialValue.forEach(stack.push.bind(stack));
182 return;
183 }
184 for (let i = 0; i < length; i++) {
185 stack.push(initialValue + i);
186 }
187}

Callers 1

Calls 2

forEachMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected