mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 14:11:06 +03:30
14 lines
433 B
JavaScript
Vendored
14 lines
433 B
JavaScript
Vendored
/** PURE_IMPORTS_START _defer,_empty PURE_IMPORTS_END */
|
|
import { defer } from './defer';
|
|
import { EMPTY } from './empty';
|
|
export function iif(condition, trueResult, falseResult) {
|
|
if (trueResult === void 0) {
|
|
trueResult = EMPTY;
|
|
}
|
|
if (falseResult === void 0) {
|
|
falseResult = EMPTY;
|
|
}
|
|
return defer(function () { return condition() ? trueResult : falseResult; });
|
|
}
|
|
//# sourceMappingURL=iif.js.map
|