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

Function appendList

src/plots/cartesian/layout_defaults.js:26–29  ·  view source on GitHub ↗
(cont, k, item)

Source from the content-addressed store, hash-verified

24var getComponentMethod = Registry.getComponentMethod;
25
26function appendList(cont, k, item) {
27 if(Array.isArray(cont[k])) cont[k].push(item);
28 else cont[k] = [item];
29}
30
31module.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {
32 var autotypenumbersDflt = layoutOut.autotypenumbers;

Callers 1

layout_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…