Y
Hacker News
new
|
ask
|
show
|
jobs
by
_harry
4418 days ago
Yup! We only recommend !function(){}(); for a module where you just need your function to run. If you rely on the return value use (function(){})(); or (function(){}()); (more on this:
https://github.com/airbnb/javascript/issues/21
)