Experiments in Purely Functional TypeScript

Recently, I’ve been experimenting with using functional programming in my side projects. Today, I want to share some of what I’ve learned, focusing on utilities I’ve created to facilitate purely functional TypeScript programming. Different Ways to Define Similar Functions Here are three versions of *roughly* the same function: const doubleAll = (array: number[]) => { […]