Abstract
In the previous chapter we saw how higher-order functions help us as a developer to create abstraction over the common problems! It’s a very powerful concept as we learned. We have created our sortBy higher-order function to showcase a valid and relevant example of the use case. Even though the sortBy function is working on the basis of higher-order functions (which is again the concept of passing functions as arguments to the other functions), it has something to do with yet another concept called Closures in JavaScript.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Anto Aravinth
About this chapter
Cite this chapter
Aravinth, A. (2017). Closures and Higher-Order Functions. In: Beginning Functional JavaScript. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2656-8_4
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2656-8_4
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2655-1
Online ISBN: 978-1-4842-2656-8
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)