Is there any advantage to define function name in "var new_function = function name(){};" in javascript?
<p>I was running a program to change some parts of my javascript code when it bugged in the declaration of a var as a function like this:</p>

<pre><code>var some_function = function name(args){
//do stuff
};
</code></pre>

<p>The code itself works, but I was just wondering if it's ok to remove the "name" for all functions that i find like this (for it doesn't break it in the other problem that analyzes my javascript) or if it could be any use for it that I can't see.</p>

<p>removing the "name":</p>

<pre><code>var new_function = function(){/*do stuff*/};
</code></pre>

<p>Note: the original file where it first happen  it was in <a href="http://code.jquery.com/jquery-1.6.4.js" rel="nofollow">jquery-1.6.4.js</a> in:</p>

<pre><code>jQuerySub.fn.init = function init( selector, context ) {
    if ( context &amp;&amp; context instanceof jQuery &amp;&amp; !(context instanceof jQuerySub) ) {
        context = jQuerySub( context );
    }

    return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
};
</code></pre>

<p>ty for any help in advance :)</p>
