Book Image

Deep Dive into Functional JavaScript [Video]

By : Zsolt Nagy
Book Image

Deep Dive into Functional JavaScript [Video]

By: Zsolt Nagy

Overview of this book

In this course, you will have an in-depth overview and the tools in your utility belt to write maintainable code in JavaScript. We will stick to the latest version of JavaScript in this course, ES2017. You don't have to know ES2017 to benefit from the course, as we will introduce the language constructs that we use during it. You will experience the benefits of functional programming even if your code is not purely functional. In this course, you will learn the building blocks that act as a utility belt in your arsenal, enabling you to write code that's easy to understand, extend, test, and debug. You will get hands-on practice on how to use currying, partial evaluation, map, reduce, filter, recursion, and other functional programming concepts in ES6.
Table of Contents (6 chapters)
Chapter 2
Functional Programming in ES6
Content Locked
Section 2
Deep and Shallow Cloning in JavaScript
Using immutable data structures is a cornerstone of functional programming. Yet, the JavaScript support for immutability is not that obvious. This video raises awareness on the different types of cloning, and makes sure we don’t end up mutating our data. - Experiment with shallow cloning using an interactive example with an object diagram - Compare shallow cloning to deep cloning using the same object diagram - Determine when it is worth for you to implement your own cloning method, and when it makes sense to use libraries