all 1 comments

[–]shitface9000 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Conditional logic quickly turns into code smell when overused. To counter this I turn to functional programming techniques.

This is a TypeScript package that works well once you get used to it.