in-range.js 408 B

1234567891011
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.inRange = void 0;
  4. function inRange(n, start, end, includeLeft, includeRight) {
  5. if (includeLeft === void 0) { includeLeft = true; }
  6. if ((includeLeft && n === start) || (includeRight && n === end))
  7. return true;
  8. return n > start && n < end;
  9. }
  10. exports.inRange = inRange;
  11. //# sourceMappingURL=in-range.js.map