Extra set of parens after a $(function() {...})
<p>I have a piece of code looking like so:</p>

<pre><code>$(function() {
  // some code here to do stuff
})();
</code></pre>

<p>Any ideas what the extra () at the end contribute to? With or without them the script works fine.</p>

<p>I'm sure this has been discussed before but I don't know of a way to code-search SO.</p>
