How to replace switch and ternaries in functional JavaScriptmedium.com4 points·eibrahim··0 commentsOpen articleSaveView on HN