Y
Hacker News
new
|
ask
|
show
|
jobs
by
jedschmidt
4121 days ago
I wish `void` would get more love for IIFEs instead of just sitting there in a dark corner of JS, unloved.
var foo = 'bar' var baz = 'bletch' void function (global) { //module pattern code here ... })(this)
1 comments
Havvy
4121 days ago
Almost perfect, but you left an unmatched close parenthesis before the call operator.
link