Writing Functional Programs
Explore how to write functional programs in TypeScript by using higher-order functions and composition. Understand creating new functionality from existing pure functions to produce clean and testable code. Learn to hide implementation details through composition and module boundaries for better code clarity.
We'll cover the following...
We'll cover the following...
Higher-order functions and composition
Let’s return to the topic of building applications. Higher-order functions are the first way of building larger programs out of smaller components. With the withFilterAndMap function (discussed here), we could’ve created three one-liner functions to be used by the withFilterAndMap function in ...