Version: 1.9.92.0.02.0.12.0.22.0.32.1.22.1.32.1.42.2.02.3.02.3.12.3.22.3.32.3.42.3.52.4.02.4.22.4.32.5.02.5.12.5.22.5.32.5.42.5.53.0.03.0.13.0.24.0.04.1.04.2.04.3.04.3.14.4.04.4.14.5.04.5.14.5.24.6.04.6.15.0.06.0.07.0.0
import { defer } from './defer';
import { empty } from './empty';
export function iif(fn, thenSource, elseSource = empty()) {
return defer(async () => ((await fn()) ? thenSource : elseSource));
}
//# sourceMappingURL=iif.mjs.map