High Order Functions
A function that receives a function as an argument or returns a function as an output
Why use high order functions?
Composition
By creating smaller functions that take care of a certain piece of logic
Composing complex functions by using different smaller functions
Reduces Bugs
Code gets easier to read and understand
Last updated