pragmatic-fp-ts
Version:
Opinionated functional programming library with easy use in mind
12 lines (11 loc) • 331 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.and = void 0;
const main_1 = require("./main");
function and(a, b) {
if (arguments.length === 1) {
return (_b) => and(a, _b);
}
return (0, main_1.getValueOr)(false, a) && (0, main_1.getValueOr)(false, b);
}
exports.and = and;