How to use the iif function from rxjs

Find comprehensive JavaScript rxjs.iif code examples handpicked from public code repositorys.

86
87
88
89
90
91
92
93
94
95
  // NOTE: applyPatch _mutates_ newPkg
  applyPatch(newPkg, pkgChange.patch);
  return pkgChange.withNewPackage(newPkg);
}),
mergeMap((pkgChange) =>
  iif(
    () => dryRun,
    of(pkgChange),
    defer(() =>
      from(
fork icon0
star icon9
watch icon1

+ 3 other calls in file

51
52
53
54
55
56
57
58
59
60
exports.forkJoin = rxjs.forkJoin;
exports.from = rxjs.from;
exports.fromEvent = rxjs.fromEvent;
exports.fromEventPattern = rxjs.fromEventPattern;
exports.generate = rxjs.generate;
exports.iif = rxjs.iif;
exports.interval = rxjs.interval;
exports.merge = rxjs.merge;
exports.never = rxjs.never;
exports.of = rxjs.of;
fork icon299
star icon0
watch icon1