JS isn't a functional programming language by definition, but it includes practically everything that a full-fledged functional language would provide. In our case, we won't be delving too deeply into this programming paradigm, but let's see some important features that will simplify your work.
Defining functions
How to do it...
JS has always included functions, which can be defined in many ways, but now there is yet one more function definition style that will provide several advantages; read on.
Writing arrow functions
After reading the preceding paragraph...