Star

Created With


filter



Only allows values who satisfy given condition:

1linkfunction filter<T>(f: (t: T) => boolean): (src: Source<T>) => Source<T>

1linkimport { interval, filter, subscribe, pipe } from 'callbag-common';

2link

3linkpipe(

4link interval(1000),

5link filter(x => x % 3 === 1),

6link subscribe(console.log),

7link)

1 4 7 10 ...
► Try It!



Home What Are Callbags?

Source Factorieschevron_right
Operatorschevron_right
Combinationchevron_right
Utilitieschevron_right