UNPKG

babel-plugin-async-to-promises

Version:

Transpile ES7 async/await to vanilla ES6 Promise chains

10 lines (9 loc) 230 B
function test() { return Promise.resolve().then(function () { return Promise.all([a(), b(), c(), Promise.resolve().then(function () { return d(); }).then(function (_resp) { return _resp.ok; })]); }); }