4 ms·
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.
by roblabla 9y ago
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.
- jholman 9y agoES7 was finalized a year ago. Everything except IE 11 supports all of it. You meant ES2017. HTH
- masklinn 9y agoAnd all current browsers save IE11 support ES2017 async functions.
- zajd 9y agoIsn't ES6 `.then(()=>{})` ?
- deleted 9y ago[deleted]
- ravenstine 9y agoOr even without curly braces: `.then(x => doSomethingWith(x));`