source: trip-planner-front/node_modules/rxjs/_esm5/internal/observable/iif.js@ ceaed42

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

initial commit

  • Property mode set to 100644
File size: 433 bytes
Line 
1/** PURE_IMPORTS_START _defer,_empty PURE_IMPORTS_END */
2import { defer } from './defer';
3import { EMPTY } from './empty';
4export function iif(condition, trueResult, falseResult) {
5 if (trueResult === void 0) {
6 trueResult = EMPTY;
7 }
8 if (falseResult === void 0) {
9 falseResult = EMPTY;
10 }
11 return defer(function () { return condition() ? trueResult : falseResult; });
12}
13//# sourceMappingURL=iif.js.map
Note: See TracBrowser for help on using the repository browser.