title: Importing individual lodash functions instead of whole lodash project
body: <p>I see that importing the entire lodash library takes up quite a bit of space on disk:</p>
  
  <pre><code>$ du . | grep lodash
  1696    ./lodash/fp
  5000    ./lodash
  </code></pre>
  
  <p>In my code I am just doing</p>
  
  <pre><code>require('lodash');
  </code></pre>
  
  <p>and my package.json just looks like:</p>
  
  <pre><code>"dependencies": {
     ...
     "lodash": "^4.6.1",
     ...
  }
  </code></pre>
  
  <p>Note that this is for a backend project only, not for web, if that makes a difference.</p>
  
  <p>So my question is - what is the latest way of just importing a slice of lodash (just the functions I need) without importing the whole damn thing?</p>
  
  <p>It looks like here are some answers:</p>
  
  <p><a href="https://gist.github.com/callumlocke/bbfc524eaed6b3556dab" rel="noreferrer">https://gist.github.com/callumlocke/bbfc524eaed6b3556dab</a></p>
  
  <p>My guess is that I should be using the dot syntax for my backend project:</p>
  
  <pre><code>"dependencies": {
     ...
     "lodash.X": "^4.6.1",
     ...
  }
  </code></pre>
  
  <p>and then import it like so:</p>
  
  <pre><code> require('lodash.X');
  </code></pre>