67a4bd92d08f957330987648b7316068aec01e63
[dotfiles/.git] / iif.js
1 /** PURE_IMPORTS_START _defer,_empty PURE_IMPORTS_END */
2 import { defer } from './defer';
3 import { EMPTY } from './empty';
4 export 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