Book description
Understand functional programming concepts and the functional nature of the JavaScript language. Starting with an introduction to functional programming concepts, you will learn the key differences between imperative and functional programming. Diving straight into JavaScript functions, you will learn to write them with ES8. Followed by this you will move to higher order functions and learn how 'Function as Data' opens up a world of possibilities.
You will then build higher order functions with closures. Arrays will then be introduced, followed by a set of APIs you can use with them. You will learn how to transform one function to another using currying and partial application. The compose function will be discussed in detail, followed by functors and monads. After having an in-depth look at applicative functors, you will learn the new features offered in ES8.
The concluding chapters of Beginning Functional JavaScript will show you how to use a functional toolkit to build a small library that allows you to develop web applications, followed by tips on testing your functional code.
What You Will Learn
- Discover functional programming concepts such as string padding and async functions
- Identify how functions are treated in JavaScript
- Create a functional library that mimics Underscore.JS
- Deep dive into ES8 functional features such as spread operators and generators
- Create a library that works like the react-redux pattern by following the functional paradigm
Who This Book Is For
Novice JavaScript developers.
Table of contents
- Cover
- Front Matter
- 1. Functional Programming in Simple Terms
- 2. Fundamentals of JavaScript Functions
- 3. Higher Order Functions
- 4. Closures and Higher Order Functions
- 5. Being Functional on Arrays
- 6. Currying and Partial Application
- 7. Composition and Pipelines
- 8. Fun with Functors
- 9. Monads in Depth
- 10. Pause, Resume, and Async with Generators
- 11. Building a React-Like Library
- 12. Testing and Closing Thoughts
- Correction to: Fun with Functors
- Back Matter
Product information
- Title: Beginning Functional JavaScript: Uncover the Concepts of Functional Programming with EcmaScript 8
- Author(s):
- Release date: December 2018
- Publisher(s): Apress
- ISBN: 9781484240878
You might also like
book
Functional JavaScript
How can you overcome JavaScript language oddities and unsafe features? With this book, you’ll learn how …
book
Functional Programming in JavaScript
Functional Programming in JavaScript teaches JavaScript developers functional techniques that will improve extensibility, modularity, reusability, testability, …
book
Mastering Javascript Functional Programming
Master Functional Programming techniques with this comprehensive guide for writing cleaner, safer, high-performing JavaScript codes About …
book
Practical ES6
There's no doubt that the JavaScript ecosystem changes fast. Not only are new tools and frameworks …