let urls = [url1, url2 ];
let arr = [];
function getUrl(url) {
return fetch(url)
.then(data => data.text())
.then(page => page)
}
let resp = urls.map(getUrl);
Promise.all(resp).then(data => {
arr = data;
});