title: How to wait for a promise to be fulfilled before continuing
body: <p>How can I wait until a Promise is resolved before executing the next line of code?</p>
  
  <p>e.g.</p>
  
  <pre><code>var option = null;
  if(mustHaveOption){
     option = store.find("option", 1).then(function(option){ return option })
  }
  //wait until promise is resolved before returning this value
  return option;
  </code></pre>