Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export function get(url, qs) {
- return fetch(url + createQueryString(qs),
- {
- 'method': 'GET',
- 'headers': getHeaders()
- });
- }
- export function getED(detailsUrl) {
- return get(detailsUrl);
- }
- function main() {
- const projectsPromises = _.map(projects,
- project => getED(detailsUrl)
- );
- Promise.all(projectsPromises)
- .then(results => { });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement