TTS Framework - JavaScript assets.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
when = function (arrayOfPromises) {
|
|
return new Promise(function (resolve, reject) {
|
|
Promise.all(arrayOfPromises).then(values => {
|
|
resolve(values);
|
|
}).catch(errors => {
|
|
reject(errors);
|
|
});
|
|
});
|
|
};
|
|
|
|
module.exports = when; |