title: Async/Await inside Array#map()
body: <p>I'm getting compile time error with this code: </p>
  
  <pre><code>const someFunction = async (myArray) =&gt; {
      return myArray.map(myValue =&gt; {
          return {
              id: "my_id",
              myValue: await service.getByValue(myValue);
          }
      });
  };
  </code></pre>
  
  <p>Error message is:  </p>
  
  <blockquote>
    <p>await is a reserved word</p>
  </blockquote>
  
  <p>Why can't I use it like this? </p>
  
  <p>I also tried another way, but it gives me same error:</p>
  
  <pre><code> const someFunction = async (myArray) =&gt; {
      return myArray.map(myValue =&gt; {
          const myNewValue = await service.getByValue(myValue);
          return {
              id: "my_id",
              myValue: myNewValue 
          }
      });
  };
  </code></pre>