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

Function _isBetween

src/helpers/helpers.math.ts:205–207  ·  view source on GitHub ↗
(value: number, start: number, end: number, epsilon = 1e-6)

Source from the content-addressed store, hash-verified

203 * @private
204 */
205export function _isBetween(value: number, start: number, end: number, epsilon = 1e-6) {
206 return value >= Math.min(start, end) - epsilon && value <= Math.max(start, end) + epsilon;
207}

Callers 4

_getLegendItemAtMethod · 0.85
findPointFunction · 0.85
inRangeMethod · 0.85
inRangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected