Hacker News new | comments | show | ask | jobs | submit login

I'm awaiting ES7 :D for the true solution to this problem. It'll eliminate the boilerplate of .then(function() {})` entirely. Less brackets, less ceremony.

ES7 was finalized a year ago. Everything except IE 11 supports all of it.

You meant ES2017.


And all current browsers save IE11 support ES2017 async functions.

Isn't ES6 `.then(()=>{})` ?

Or even without curly braces:

`.then(x => doSomethingWith(x));`

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact