UNPKG

conditional-reduce

Version:

Construct a JavaScript expression that returns a value based on an enumerated list of possible values

15 lines (8 loc) 438 B
## 1.2.0 (2019-5-20) - Added an optional default case parameter to `curry` and `reduce`. ## 1.1.0 (2019-5-17) - Refactored to have two separate methods: `curry` and `reduce`. _Technically_ this is a breaking change, but I'm letting it slide since the other versions are only a few minutes old. ## 1.0.1 (2019-5-17) - Updated the README with proper kudos, no code changes. ## 1.0.0 (2019-5-17) - Initial implementation