MCPcopy
hub / github.com/chartjs/Chart.js / _getEdge

Function _getEdge

src/plugins/plugin.filler/filler.segment.js:94–99  ·  view source on GitHub ↗
(a, b, prop, fn)

Source from the content-addressed store, hash-verified

92}
93
94function _getEdge(a, b, prop, fn) {
95 if (a && b) {
96 return fn(a[prop], b[prop]);
97 }
98 return a ? a[prop] : b ? b[prop] : 0;
99}

Callers 1

_segmentsFunction · 0.85

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected