MCPcopy Create free account
hub / github.com/amqp-node/amqplib / nestedTable

Function nestedTable

test/codec.test.js:323–329  ·  view source on GitHub ↗
(isArray)

Source from the content-addressed store, hash-verified

321 }
322
323 function nestedTable(isArray) {
324 let value = true;
325 for (let level = 0; level < depth; level++) {
326 value = isArray(level) ? [value] : { x: value };
327 }
328 return { k: value };
329 }
330
331 function encode(table) {
332 const buffer = Buffer.alloc(131072);

Callers 1

codec.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected