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

Function addToLookup

src/traces/sunburst/calc.js:30–34  ·  view source on GitHub ↗
(parent, v)

Source from the content-addressed store, hash-verified

28 var parent2children = {};
29 var refs = {};
30 var addToLookup = function(parent, v) {
31 if(parent2children[parent]) parent2children[parent].push(v);
32 else parent2children[parent] = [v];
33 refs[v] = 1;
34 };
35
36 // treat number `0` as valid
37 var isValidKey = function(k) {

Callers 1

calc.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…