callbag-take
Callbag operator that limits the amount of data sent by a source. Works on either pullable and listenable sources.
npm install callbag-take
example
On a listenable source:
const interval = ;const observe = ;const take = ; const source = ; ; // 0 // 1 // 2
On a pullable source:
const fromIter = ;const iterate = ;const take = ; { let i = from; while i <= to i; i++; } const source = ; ; // 100 // 101 // 102 // 103