MCPcopy Create free account
hub / github.com/plotly/plotly.js / isIndex

Function isIndex

src/plot_api/plot_schema.js:383–385  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

381// note: this is different from Lib.isIndex, this one doesn't accept numeric
382// strings, only actual numbers.
383function isIndex(val) {
384 return val === Math.round(val) && val >= 0;
385}
386
387function getTraceAttributes(type) {
388 var _module, basePlotModule;

Callers 2

convertToD3SankeyFunction · 0.85
recurseIntoValObjectFunction · 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…