atcheck/lsscanner/new_ubuntu/node_modules/rxjs/internal/observable/iif.js

11 lines
466 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var defer_1 = require("./defer");
var empty_1 = require("./empty");
function iif(condition, trueResult, falseResult) {
if (trueResult === void 0) { trueResult = empty_1.EMPTY; }
if (falseResult === void 0) { falseResult = empty_1.EMPTY; }
return defer_1.defer(function () { return condition() ? trueResult : falseResult; });
}
exports.iif = iif;
//# sourceMappingURL=iif.js.map