Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. const array = [];
  2. Promise.all([_requestTheme(theme), _requestRoom(room)])
  3. .then((values) => {
  4. const x = values[0];
  5. const y = values[1];
  6.  
  7. return _anotherRequest(endpoint, {x, y}).
  8. then((value) => {
  9. array.push(value);
  10. });
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement