Last change
on this file since 6a3a178 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 */
|
---|
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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.