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

Function coercePart

src/lib/coerce.js:311–320  ·  view source on GitHub ↗
(v, opts, dflt)

Source from the content-addressed store, hash-verified

309 coerceFunction: function(v, propOut, dflt, opts) {
310 // simplified coerce function just for array items
311 function coercePart(v, opts, dflt) {
312 var out;
313 var propPart = {set: function(v) { out = v; }};
314
315 if(dflt === undefined) dflt = opts.dflt;
316
317 exports.valObjectMeta[opts.valType].coerceFunction(v, propPart, dflt, opts);
318
319 return out;
320 }
321
322 if(isTypedArraySpec(v)) v = decodeTypedArraySpec(v);
323

Callers 1

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