MCPcopy
hub / github.com/lovell/sharp / isInRange

Function isInRange

test/unit/stats.js:17–19  ·  view source on GitHub ↗
(actual, min, max)

Source from the content-addressed store, hash-verified

15 return actual >= ((1 - threshold) * expected) && actual <= ((1 + threshold) * expected);
16}
17function isInRange (actual, min, max) {
18 return actual >= min && actual <= max;
19}
20function isInteger (val) {
21 return Number.isInteger(val);
22}

Callers 1

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