Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const array = [];
- Promise.all([_requestTheme(theme), _requestRoom(room)])
- .then((values) => {
- const x = values[0];
- const y = values[1];
- return _anotherRequest(endpoint, {x, y}).
- then((value) => {
- array.push(value);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement