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

Function npMaybe

src/components/colorscale/defaults.js:12–17  ·  view source on GitHub ↗
(parentCont, prefix)

Source from the content-addressed store, hash-verified

10var traceIs = require('../../registry').traceIs;
11
12function npMaybe(parentCont, prefix) {
13 var containerStr = prefix.slice(0, prefix.length - 1);
14 return prefix ?
15 Lib.nestedProperty(parentCont, containerStr).get() || {} :
16 parentCont;
17}
18
19/**
20 * Colorscale / colorbar default handler

Callers 1

defaults.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…