Lambda And Functional Programming In Typescript