Lodash functional programming

Lodash is a JavaScript library used for functional programming. It gives an alternative to traditional programming and can be more efficient and make code more reusable because everything is built with functions that are "pure". Pure functions are functions that do not mutate state. This means that they do not modify the input variables and that the same input variables will always give the same output. It is an excellent approach for decoupling of software and building small re-usable components.

This style of programming is becoming more popular and JavaScript has added recent support for this.

One library that is easy to begin with is Lodash. Lodash does not always maintain the concept of pure functions but it is relatively easy for a programmer to use to start learning functional programming in JavaScript. Eventually, you may want to move on to other libraries, such as Ramda, or to try using a more functional language, such as ClojureScript, however, learning functional JavaScript provides an excellent way to efficiently write code for web applications that run on the NodeJs environments.

The best way to get started is to check out their documentation directly and start trying to use functions. It is necessary to first develop familiarity with the briskness of functional programming documentation. You have to think of everything in the abstract as much as possible.

https://lodash.com/docs/4.17.4

Posted on Nov 30, 2017