DEV Community 👩‍💻👨‍💻

cem kaan kosali
cem kaan kosali

Posted on

Functional Typescript Series

Function composition is the process of combining two or more functions to produce a new function. Composing functions together is like snapping together a series of pipes for our data to flow through.

const trim = (s: string) => s.trim();
const capitalize = (s: string) => s.toUpperCase();
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

🌚 Browsing with dark mode makes you a better developer.

It's a scientific fact.