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

Function pop

test/unit/stream-id-stack-tests.js:171–177  ·  view source on GitHub ↗
(stack, n)

Source from the content-addressed store, hash-verified

169}
170
171function pop(stack, n) {
172 const arr = [];
173 for (let i = 0; i < n; i++) {
174 arr.push(stack.pop());
175 }
176 return arr;
177}
178
179function push(stack, initialValue, length) {
180 if (Array.isArray(initialValue)) {

Callers 1

Calls 2

popMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected