"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.intervalIntersection = void 0;
function intervalIntersection(a, b) {
    const start = Math.max(a[0], b[0]);
    const end = Math.min(a[1], b[1]);
    if (start > end) {
        return null;
    }
    return [start, end];
}
exports.intervalIntersection = intervalIntersection;
//# sourceMappingURL=interval-intersection.js.map