title: Add New Entries to Key Value Pair Array in Type Script
body: <p>I am trying to add a new key value pair entry to the existing dictionary. Here's the TypeScript to define the dictionary:</p>
  <pre><code>export class DictionaryClass {
      Dictionary?: { [key: string]: boolean };
  }
  
  export function getDictionary(locale: string) {
  
  let dictionaryClass = new DictionaryClass();
  dictionaryClass.Dictionary = {
   &quot;ShowButton&quot;: true
  };
  dictionaryClass.Dictionary.forEach(v =&gt; { &quot;ShowImage&quot;: false; });
  
  return dictionaryClass;
  </code></pre>
  <p>}</p>
  <p>I googled around and I was told <code>ForEach</code> would be the method to add new entries, but it doesn't seem to have such method.</p>
  <p>Any other idea to approach this?</p>