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

Function undefinedToNull

src/plot_api/plot_api.js:1310–1313  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

1308// for undo: undefined initial vals must be turned into nulls
1309// so that we unset rather than ignore them
1310function undefinedToNull(val) {
1311 if (val === undefined) return null;
1312 return val;
1313}
1314
1315/**
1316 * Factory function to wrap nestedProperty with GUI edits if necessary

Callers 5

storeCurrentFunction · 0.85
doextraFunction · 0.85
_restyleFunction · 0.85
_relayoutFunction · 0.85
applyUIRevisionsFunction · 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…