title: ES6/typescript how to create an array with key and value?
body: <p>I have a simple question.
  I'd like to create an Array with ['Key'=value] in Angular ES6/Typescript.
  I need to put the data like this:</p>
  
  <pre><code>&gt; Revenues = [ Product: "myProduct 1", Revenue: 1234.56 ],
  &gt;            [ Product: "myProduct 2", Revenue: 5678.90 ]
  </code></pre>
  
  <p>I need to iterate this, sumarize them, sort them, take keys separately in some situations and values separately in others, etc.</p>
  
  <p>Something similar in PHP to <code>$revenue[] = [ 'product' =&gt; value ];</code></p>
  
  <p>Is it possible? How can a make it? </p>
  
  <p>Could someone post an example?</p>
  
  <p>Thanks </p>