wait for lodash find finish
<p>I'm using <a href="https://lodash.com/docs" rel="nofollow">lodash</a> in my <strong>NodeJS</strong> app. I want to use <code>_.find</code>. 
But I have to wait for <code>_.find</code> to finish so I can use the <em>found</em> information, or else it will be <code>undefined</code> when I want to use it.</p>

<pre><code>var items = [
  { id: 001 
    // Super Object
    // +150 properties each
  },
  { id: 002 } // up to 200
];

var foundItem = _.find ( items , { id: 002 });

console.log(foundItem);
// =&gt; logs Undefined
</code></pre>

<p>How can I do it? I need to wait for lodash <code>_.find</code> to finish to be able to print the found item.</p>