title: Return the boolean value from a function that uses a promise?
body: <p>I have the following helper function </p>
  
  <pre><code>userExist(email) {
      this.findUserByEmail(email).then(result =&gt; {
        return true;
      }).catch(error =&gt; {
        return false;
      });
  
    }
  </code></pre>
  
  <p>then I call this in a different file:</p>
  
  <pre><code>var stuff = userService.userExist('abc')
  console.log(stuff);
  </code></pre>
  
  <p>But stuff is always undefined since the function is a promise, how can I wait for this value to my helper function returns true or false</p>