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

Function leafLeft

docs/tests/v2/es6/js/sanddance.js:120798–120804  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

120796}
120797
120798function leafLeft(node) {
120799 var children;
120800
120801 while (children = node.children) node = children[0];
120802
120803 return node;
120804}
120805
120806function leafRight(node) {
120807 var children;

Callers 1

clusterFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected