UNPKG

@beenotung/tslib

Version:
11 lines (10 loc) 278 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.between = void 0; exports.xor = xor; function xor(a, b) { return !!((a ? 1 : 0) ^ (b ? 1 : 0)); } /** inclusive */ const between = (a, b, c) => a <= b && b <= c; exports.between = between;