In the web, there are pretty much many libraries that can help us in software development/web development, we just need to find it. And in this series, we gonna hop in to learn about lodash. We will cover the famous and most used method.
Actually, I never knew about lodash until my colleague in my workplace introduce it to me, and I can proudly say that if you are using javascript, you must use lodash!
What is it?
Lodash is a modern JavaScript utility library with modularity, performance, and other features.
It will make your life easier to implement complex logic with only using the method in the library.
It simplifies JavaScript by removing the tedium of dealing with arrays, numbers, objects, texts, and other data types.
The modular methods of Lodash are ideal for:
- Arrays, objects, and strings when it is being iterated.
- Changing and testing values
- Putting together composite functions
How to include lodash in your web app/node js app?
In the browser, include the script below
<script src="lodash.js"></script>
If you are using using npm, install it first by running script below
$ npm i -g npm
$ npm i --save lodash
Then include it in you node js application
const _ = require('lodash');
Usually, we will use underscore _
to use lodash.
And that's it! You're good to go!
Thank you for reading :D
Psstt pstt :p
Do consider to love this article β€οΈ and follow me! Why not right? It's FREE~
I would really appreciate it π¨π»βπ»
Will be posting more on things related to AWS, Javascript, Python, Serverless and more!
Top comments (1)
Indeed you're correct. Javascript is becoming much easier nowadays with the present method they have. We just need to have the correct method to use