UNPKG

@reactivex/ix-esnext-esm

Version:

The Interactive Extensions for JavaScript

8 lines (6 loc) 220 B
import { defer } from './defer'; import { empty } from './empty'; export function iif(fn, thenSource, elseSource = empty()) { return defer(() => (fn() ? thenSource : elseSource)); } //# sourceMappingURL=iif.mjs.map