I am using the function fetch to get data from a url by doing
function fetchData(){
     return fetch(url).then(function(response){
         return response.json();
     })
    .catch((error) => {
       console.error(error);
     }); 
}
Promise {_45: 0, _81: 0, _65: null, _54: null}
_45:0
_54:null
_65:{products: Array(50)}
_81:1
__proto__:Object
How do I access the 'products' in this promise. I tried doing json._65 but that didn't give me the json containing products.
Thanks in advance.
 
    