title: Await function not waiting and passing to next line
body: <p>I created  a basic function that's calling another function that should return a result and then I want to log it from the main function but when I do it it's just not waiting and log (undefined) and not waiting for the result to arrive.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const returnBool = async () =&gt; {
    const googleData = await getData();
    console.log(googleData);
  };
  
  
  const getData = () =&gt; {
    googleTrends
      .interestOverTime({ keyword: `Test` })
      .then(function (results) {
        console.log(results);
        return results;
      })
      .catch(function (err) {
        console.error('Oh no there was an error', err);
      });
  };</code></pre>
  </div>
  </div>
  </p>