wishthis/node_modules/rxjs/dist/cjs/internal/observable/iif.js

9 lines
328 B
JavaScript
Raw Normal View History

2022-04-07 07:06:43 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.iif = void 0;
var defer_1 = require("./defer");
function iif(condition, trueResult, falseResult) {
return defer_1.defer(function () { return (condition() ? trueResult : falseResult); });
}
exports.iif = iif;
//# sourceMappingURL=iif.js.map