Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/aparzi/iif_then
- Owner: aparzi
- Created: 2024-07-17T21:56:35.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-23T12:49:53.000Z (4 months ago)
- Last Synced: 2024-07-23T15:00:05.152Z (4 months ago)
- Language: TypeScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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