The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Introduction to Lodash

Introduction to Lodash

1:33
Lodash is a toolkit of Javascript functions that provides clean, performant methods for manipulating objects and collections. It is a "fork" of the Underscore library and provides additional functionality as well as some serious performance improvements. If you aren't using Lodash, you should be.
Watch this lesson now
Avatar
egghead.io

Lodash is a toolkit of Javascript functions that provides clean, performant methods for manipulating objects and collections. It is a "fork" of the Underscore library and provides additional functionality as well as some serious performance improvements. If you aren't using Lodash, you should be.

Avatar
Roman Ganchenko

How did you make your WebStorm to behave this way? Like you save a code and it runs instantly in the separate window?
Would love to know about it

In reply to egghead.io
Avatar
John

You can have any node script "Run" when you hit "Ctrl+R". Right-click on the script to set it up the first time, then Ctrl+R for subsequent runs.

In reply to Roman Ganchenko
Avatar
Deryck

I don't like linking off-site, but I think anyone that is either unsure of using lodash vs. underscore (or others), or really any developer with at least an intermediate understanding of JS, needs to watch this video.

John-David Dalton, the Lo-Dash creator, describes how his library is built with optimizations that, in some cases, even outperform some native counterparts: https://www.youtube.com/watch?v=NthmeLEhDDM&list=LLuyw3Di40FSMiYsdksLkKDg

Avatar
Tijmen

I would like to know howto set up webstorm to replicate the environment in which you demo.

I created a new project and did an npm install for lodash. then I create a demo.js and I try to require lodash so I can run the demo js but it doesn't work

In reply to John
Avatar
Tijmen

I had to require the whole relative path. I thought require would look for a node_modules folder itself

In reply to Tijmen
Avatar
Deryck

John does this in a shockingly high number of videos actually.

https://www.youtube.com/playlist?list=PLQ176FUIyIUb0zTe7k4ZKkhMsR-slKu3w
https://www.youtube.com/watch?v=leKbqNpgoNQ
https://egghead.io/lessons/webstorm-tips-tricks

I would like to know howto set up webstorm to replicate the environment in which you demo.

I created a new project and did an npm install for lodash. then I create a demo.js and I try to require lodash so I can run the demo js but it doesn't work

In reply to Tijmen
Avatar

what version of lodash are you using?

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?