title: Edit Promise result (JavaScript)
body: <p>I want to edit a res.json what callbacked(Promise.then) result is to associative array like this "{category:"tennis",data:res.json()}" </p>
  
  <p>then I want to get a it without a Promise type</p>
  
  <p>I tried it but It returned with Promise Type</p>
  
  <pre><code>const promise = new Promise(function(resolve,reject) {
    fetch("http://localhost:100/api/v1/categories/map").then(response
      =&gt; resolve(response.json()))
  });
  
  
   
  
  promise.then(value =&gt; Promise.all(value.category.map(
    category =&gt; {
       return (fetch("http://localhost:100/api/v1/categoriescategory=tennis"))
    }
  ))
  .then(responses =&gt; {console.log(responses);
    return Promise.all(responses.map(res=&gt; {
       console.log(res.json()) &lt;- this is not Promise
    return(
    {category:"tennis",data:res.json()}  &lt;- this is  Promise
  
  
  )
  } )
  )}))
  .then(value=&gt;console.log(value)) // {{category:"tennis",Promise{data:data}} &lt;- i want to unwrap Promise
  
  </code></pre>