JavaScript through the Lenses of Functional Programming

One of the main challenges of large-scale application development, especially with JavaScript, is keeping track of the mutable state of the system at any point in time. We can use lenses, a functional programming artifact, to eliminate the level of mutations and side effects in your code.