Comment Comment by tanto The moment I started using async await (with babel) combined with the new fetch API so many libraries got obsolete.Getting data is as easy as: async function main () { try { const res = await fetch('https://api.github.com/orgs/facebook'); const json = await res.json(); console.log(json); } catch (e) { // handle error } } So I am quite happy when this lands in modern browsers asap. parent tanto 10 years ago
Getting data is as easy as:
So I am quite happy when this lands in modern browsers asap.