title: Get a value inside a Promise Typescript
body: <p>One of function inside a typescript class returns a <code>Promise&lt;string&gt;</code>. How do I unwrap/yield the value inside that promise.</p>
  
  <pre><code>functionA(): Promise&lt;string&gt; {
     // api call returns Promise&lt;string&gt;
  }
  
  functionB(): string {
     return this.functionA() // how to unwrap the value inside this  promise
  }
  </code></pre>