April 2018
Beginner
536 pages
13h 21m
English
It is common to find mentions of functions as first-class citizens
in FP literature. We say that a function is a "first-class citizen"
when it can do everything that a variable can do. This means that functions can be passed to other functions as an argument or to be returned by another function. Functions can also be assigned to variables. Both JavaScript and TypeScript treat functions as "first-class citizens"
.