title: Import, rename, and export a function in JavaScript?
body: <p>With JavaScript what's the shortest way to import a named export, rename it, and export it again? </p>
  
  <p>This code works but it feels more verbose than it should be</p>
  
  <pre><code>import { mock as myFunctionMock } from 'context/myFunction';
  export const myFunction = myFunctionMock;
  </code></pre>