Tibing / async-pipeline

🌈 RxJS operators for Angular component templates 😱
https://github.com/tibing/async-pipeline
MIT License
138 stars 5 forks source link

New Custom pipes #1

Open KostyaDanovsky opened 5 years ago

KostyaDanovsky commented 5 years ago

I think it will be great if this library can have additional pipes like isEmpty, any.

In your example $items | length | not | async it's kind a hard to understand what do you mean there, it will be much easier to understand $items | isEmpty | async

neversaid commented 5 years ago

I have added a new custom pipe (isEmpty) for that and created a PR #3 . It checks Arrays and Strings for "empty".