filter

仅仅发出 Observable 中通过判定的元素

filter 操作符将通过你提供的判定方法过滤一个 Observable

演示

输出结果:

Last updated

Was this helpful?