title: How to convert enum into a key,value array in typescript?
body: <pre><code>var enums = {
    '1': 'HELLO',
    '2' : 'BYE',
    '3' : 'TATA'
    };
  </code></pre>
  
  <p>I want to be able to convert that into an array that looks like this,</p>
  
  <pre><code>[
    {
      number:'1',
      word:'HELLO'
    },
    {
      number:'2',
      word:'BYE'
    },
    {
      number:'3',
      word:'TATA'
    }
  ]
  </code></pre>
  
  <p>all of the solutions I see form an array of either the keys or the values. </p>