Haskell like pattern matching in javascript in 40 LOC | Heykuki News