Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aparzi/iif_then

Utility for rxjs that simulates the behavior of if and else.
https://github.com/aparzi/iif_then

Last synced: 4 days ago
JSON representation

Utility for rxjs that simulates the behavior of if and else.

Awesome Lists containing this project

README

        

## iif_then

Utility for rxjs that simulates the behavior for if and else. The iif operator is already present in the rxjs library but due to the way it is structured both input parameters: trueResult and falseResult, are executed. In some cases, this leads to cumbersome management of the two functions. This utility instead, only calls the function of interest, after evaluating the condition it takes as input