callbag-flat-map 👜
A callbag operator that creates and flates to the new source whenever original source emits
npm install callbag-flat-map
Usage:
Pullable Source
const pipe = ;const flatMap = ;const fromIter = ;const forEach = ; console;; // Pullable source// h10// h20// h30// i10// i20// i30
Listenable Source
const pipe = ;const flatMap = ;const interval = ;const forEach = ;const fromPromise = ; const fakeAjax = { let period = value % 2 ? 400 : 1200; // Resolve odd numbers quickly ;}; console;; // Listenable source// 1// 0// 9// 4// 25// 16// 49// 36// ....