source: trip-planner-front/node_modules/rxjs/internal/observable/iif.js@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 466 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var defer_1 = require("./defer");
4var empty_1 = require("./empty");
5function iif(condition, trueResult, falseResult) {
6 if (trueResult === void 0) { trueResult = empty_1.EMPTY; }
7 if (falseResult === void 0) { falseResult = empty_1.EMPTY; }
8 return defer_1.defer(function () { return condition() ? trueResult : falseResult; });
9}
10exports.iif = iif;
11//# sourceMappingURL=iif.js.map
Note: See TracBrowser for help on using the repository browser.