Will a nested function always have to be redefined?
<p>For architecture and namespacing purposes, I want to do this:</p>

<pre><code>function outer (arr) {
  function inner(arrElement) {
    return doStuffTo(arrElement); 
  }
  var results = [];

  arr.forEach(element, index, array) {
    results.push(inner(element));
  }
  return results;
}
</code></pre>

<p>So basically, a function within a function. Simple stuff. But <code>outer()</code> is something that will be executed <em>a lot</em>. Does this mean the overhead of defining a function (on top of evaluating it) will apply every time <code>outer()</code> is called? For this to be efficient, must I define <code>inner()</code> outside?</p>
