title: Vue.js - lodash | How to import only specific functions globally?
body: <p>I currently import the whole lodash library like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>import _ from 'lodash';
  Object.defineProperty(Vue.prototype, '$_', { value: _ });
  </code></pre>
  
  <p>And it works fine, and I can access all the lodash functions using <code>this.$_.startCase()</code></p>
  
  <p>But I only use the function <code>startCase</code> and <code>omit</code> in my entire project. So I tried importing jus those functions:</p>
  
  <pre class="lang-js prettyprint-override"><code>import {startCase, omit} from 'lodash/core';
  Object.defineProperty(Vue.prototype, '$omit', { value: omit});
  Object.defineProperty(Vue.prototype, '$startCase', { value: omit});
  </code></pre>
  
  <p>But When I try to access these functions using <code>this.$omit()</code> it throws an error saying that function is not defined. </p>
  
  <p>What is going wrong here?</p>