Higher-Order Functions With TypeScript

Read Time:1 Minute, 33 Second

HIGHER ORDER FUNCTIONS

Introduction

TypeScript is not a purely functional programming language but offers a lot of concepts that are in line with functional programming languages. Most developers are oblivious to these concepts in TypeScript.

A Higher-order-function is a function that accepts one or more functions as parameters or returns another function as a result. 

What are Higher-Order Functions?

A Higher-Order Function is a function that either takes another function as an argument or returns a function. So basically we could say, that a Higher-Order Function is wrapping another function. 

Example of a higher-order function;