title: ES6 export all values from object
body: <p>Say I have a module (<code>./my-module.js</code>) that has an object which should be its return value:</p>
  
  <pre><code>let values = { a: 1, b: 2, c: 3 }
  
  // "export values" results in SyntaxError: Unexpected token
  </code></pre>
  
  <p>So I can import them like:</p>
  
  <pre><code>import {a} from './my-module'           // a === 1
  import * as myModule from './my-module' // myModule.a === 1
  </code></pre>
  
  <p>The only way I found is by hard coding the exports:</p>
  
  <pre><code>export let a = values.a
  export let b = values.b
  export let c = values.c
  // or:
  export let {a, b, c} = values
  </code></pre>
  
  <p>Which is not dynamic.</p>
  
  <p>Is it possible to export all values from an object?</p>