Starting Out with Functions – A Core Concept
In Chapter 2, Thinking Functionally, we discussed an example of FP thinking, but now, let’s look at the basics and review functions.
In this chapter, we’ll do the following:
- Discuss functions in JavaScript, including how to define them, with a particular focus on arrow functions
- Learn about currying and functions as first-class objects
- Explore several ways of using functions in an FP way
After going through all this content, you’ll be up to date with the generic and specific concepts relating to functions, which are, after all, at the core of FP!