MCPcopy Index your code
hub / github.com/leeoniya/uPlot / ifNull

Function ifNull

src/utils.js:183–185  ·  view source on GitHub ↗
(lh, rh)

Source from the content-addressed store, hash-verified

181
182// nullish coalesce
183export function ifNull(lh, rh) {
184 return lh == null ? rh : lh;
185}
186
187// checks if given index range in an array contains a non-null value
188// aka a range-bounded Array.some()

Callers 11

uPlotFunction · 0.90
initSeriesFunction · 0.90
accScaleFunction · 0.90
addBandFunction · 0.90
linearFunction · 0.90
barsFunction · 0.90
splineInterpFunction · 0.90
bandFillClipDirsFunction · 0.90
steppedFunction · 0.90
hasDataFunction · 0.85
_rangeNumFunction · 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…