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

Function arrayDefaultKey

src/plot_api/plot_template.js:230–236  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

228}
229
230function arrayDefaultKey(name) {
231 var lastChar = name.length - 1;
232 if(name.charAt(lastChar) !== 's') {
233 Lib.warn('bad argument to arrayDefaultKey: ' + name);
234 }
235 return name.slice(0, -1) + 'defaults';
236}
237exports.arrayDefaultKey = arrayDefaultKey;
238
239/**

Callers 1

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