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

Function isValidKey

src/traces/sunburst/calc.js:37–39  ·  view source on GitHub ↗
(k)

Source from the content-addressed store, hash-verified

35
36 // treat number `0` as valid
37 var isValidKey = function(k) {
38 return k || typeof k === 'number';
39 };
40
41 var isValidVal = function(i) {
42 return !hasValues || (isNumeric(values[i]) && values[i] >= 0);

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…