Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
I totally agree. Another cool option is to use Ramda's cond.
varfn=R.cond([[R.equals(0),R.always('water freezes at 0°C')],[R.equals(100),R.always('water boils at 100°C')],[R.T,temp=>'nothing special happens at '+temp+'°C']]);fn(0);//=> 'water freezes at 0°C'fn(50);//=> 'nothing special happens at 50°C'fn(100);//=> 'water boils at 100°C'
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I totally agree. Another cool option is to use Ramda's
cond
.