@beenotung/tslib
Version:
utils library in Typescript
12 lines • 363 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.between = exports.xor = void 0;
/* tslint:disable no-bitwise */
function xor(a, b) {
return !!((a ? 1 : 0) ^ (b ? 1 : 0));
}
exports.xor = xor;
/* tslint:enable no-bitwise */
/** inclusive */
exports.between = (a, b, c) => a <= b && b <= c;
//# sourceMappingURL=logic.js.map