title: Convert a typescript enum into an array of enums
body: <p>I have an enum</p>
  
  <pre><code>export enum A{
     X = 'x',
     Y = 'y',
     Z = 'z'
  }
  </code></pre>
  
  <p>I want this to be converted to</p>
  
  <pre><code>[A.X, A.Y, A.Z]
  </code></pre>
  
  <p>Type of the array is A[]. How to do this?</p>