Export const arrow function or basic function? : <p>Which is better to do: export a <code>const</code> arrow function, like so:</p>

<pre><code>export const foo = () =&gt; 'bar'
</code></pre>

<p>or export a regular function, like so:</p>

<pre><code>export function baz() {
  return 'bar';
}
</code></pre>

<p>They compile like so:</p>

<pre><code>exports.baz = baz;
function baz() {
  return 'bar';
}
var foo = exports.foo = function foo() {
  return 'bar';
};
</code></pre>

<p>It looks like using the const/arrow function combination declares an extra variable (<code>foo</code>), which seems to be an unnecessary extra step over the simple function declaration.</p>
