You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
441 B

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.inRange = inRange;
function inRange(n, start, end, includeLeft, includeRight) {
if (includeLeft === void 0) { includeLeft = true; }
if (includeRight === void 0) { includeRight = false; }
if ((includeLeft && n === start) || (includeRight && n === end))
return true;
return n > start && n < end;
}
//# sourceMappingURL=in-range.js.map