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.

8 lines
344 B

4 months ago
export 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