Higher-order functions

Higher-order functions (HOF is the fanciest term you will be hearing when getting started with functional programming. Higher-order functions are functions that take functions as arguments or return functions. By now, we have already been consuming such functions. Remember Array.reduce(), Array.filter(), and Array.map()? These are all higher-order functions. In the Redux library, we are consuming some of the HOF, too (such as connect()).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset