DEV Community

loading...

Discussion on: There's no "else if" in JS

Collapse
kayis profile image
K

In FP you could use filter instead of if, which makes your code more modular than stacking if on if.