Hacker News new | ask | show | jobs
by layoutIfNeeded 2307 days ago
Wait, why do you need IIFE in post-ES6 JS? Just use let/const.
1 comments

Well, OP's example is using it, but I think it's for top level async/await (not a JS dev here)?
Top level await is in Stage 3, so it'll be baked into the general system before too long.
Yup