top | item 9152585

(no title)

jedschmidt | 11 years 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)

discuss

order

Havvy|11 years ago

Almost perfect, but you left an unmatched close parenthesis before the call operator.