Functional Switch
A functional implementation of switch.
This library is in alpha now. It would be great if you help me try it.
Installation
npm install functional-switch --save
Usage
// simple exampleconst isFruitOrVegetable = // isFruit
API
when()
: clause statement
otherwise()
: statement
cond()
: any