MCPcopy Index your code
hub / github.com/plotly/plotly.js / doVisitHalf

Function doVisitHalf

stackgl_modules/index.js:10880–10893  ·  view source on GitHub ↗
(lo, compare, visit, node)

Source from the content-addressed store, hash-verified

10878
10879//Visit half nodes in order
10880function doVisitHalf(lo, compare, visit, node) {
10881 var l = compare(lo, node.key)
10882 if(l <= 0) {
10883 if(node.left) {
10884 var v = doVisitHalf(lo, compare, visit, node.left)
10885 if(v) { return v }
10886 }
10887 var v = visit(node.key, node.value)
10888 if(v) { return v }
10889 }
10890 if(node.right) {
10891 return doVisitHalf(lo, compare, visit, node.right)
10892 }
10893}
10894
10895//Visit all nodes within a range
10896function doVisit(lo, hi, compare, visit, node) {

Callers 1

index.jsFile · 0.85

Calls 1

compareFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…