Be careful when importing functions from libraries while developing web applications. For example:
When you import like this, you will be importing the entire lodash library into your front end application. Instead, prefer to load the specific utility that you are looking for.
Doing so in this example can means the difference between 20k bytes of extra download. Now you may be thinking that you can get away with this instead:
And while this would certainly be more concise (especially if you are loading multiple functions) it also results in loading the entire library of lodash into your application. Libraries like webkit are not able to do tree shaking using with this method.