in-range.js 285 B

1234567
  1. export function inRange(n, start, end, includeLeft, includeRight) {
  2. if (includeLeft === void 0) { includeLeft = true; }
  3. if ((includeLeft && n === start) || (includeRight && n === end))
  4. return true;
  5. return n > start && n < end;
  6. }
  7. //# sourceMappingURL=in-range.js.map