callbag-from-iter
Convert a JS Iterable or Iterator to a callbag pullable source (it only sends data when requested).
npm install callbag-from-iter
example
Convert an Iterable:
const fromIter = ;const iterate = ; const source = ; source; // 10 // 20 // 30 // 40
Convert an Iterator:
const fromIter = ;const iterate = ; const source = ; source; // [0,10] // [1,20] // [2,30] // [3,40]