MCPcopy Create free account
hub / github.com/socketstream/socketstream / getBranchFromTree

Function getBranchFromTree

lib/request/responders/rpc/request.js:122–136  ·  view source on GitHub ↗
(tree, ary, index, i)

Source from the content-addressed store, hash-verified

120// Private
121
122function getBranchFromTree(tree, ary, index, i) {
123 if (index == null) {
124 index = null;
125 }
126 if (i == null) {
127 i = 0;
128 }
129 if (index == null) {
130 index = ary.length;
131 }
132 if (i === index) {
133 return tree;
134 }
135 return getBranchFromTree(tree[ary[i]], ary, index, ++i);
136}

Callers 1

request.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected