title: ES6 import in for-of-loop
body: <p>Is there any way to import and export multiple files using for-of-loop (or another loop) in ES6?</p>
  
  <pre><code>const moduleNames = ['NumberUtils', 'StringUtils', 'ArrayUtils', 'MyModule', 'AnotherModule', 'BaseModule']
  
  let modules = {}
  
  for (const moduleName of moduleNames) {
      import module from './' + moduleName
      modules.moduleName = module
  }
  
  export modules
  </code></pre>
  
  <p>Without loop I have to write:</p>
  
  <pre><code>import NumberUtils from './NumberUtils'
  import StringUtils from './StringUtils'
  import ArrayUtils from './ArrayUtils'
  import MyModule from './MyModule'
  import AnotherModule from './AnotherModule'
  import BaseModule from './BaseModule'
  
  export {
      NumberUtils,
      StringUtils
      ArrayUtils
      MyModule
      AnotherModule
      BaseModule
  }
  </code></pre>