MCPcopy Create free account
hub / github.com/microsoft/SandDance / treeNodes

Function treeNodes

docs/app/js/sanddance-app.js:143069–143072  ·  view source on GitHub ↗
(name, context)

Source from the content-addressed store, hash-verified

143067}
143068const datum = (d)=>d.data;
143069function treeNodes(name, context) {
143070 const tree = data.call(context, name);
143071 return tree.root && tree.root.lookup || {};
143072}
143073function treePath(name, source, target) {
143074 const nodes = treeNodes(name, this), s = nodes[source], t = nodes[target];
143075 return s && t ? s.path(t).map(datum) : undefined;

Callers 2

treePathFunction · 0.70
treeAncestorsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected