title: Simplifying the declaration of a dictionary where the value of a key is the property name as a string
body: <p>I have the following constant:</p>
  <pre><code>const X = {
    x: 'x',
    y: 'y',
    z: 'z'
  }
  </code></pre>
  <p>Is there a way to write this without repetitions?</p>
  <p>P.S: Found something like this in production code but way longer, don't know what the point is.</p>