Introduction to higher-order functions

Premium

You used .map() and .filter() in the array methods series. Both take a function as input. A higher-order function either takes another function as a parameter or returns a function. They're the building blocks of reusable, composable code.