title: How to replace an array of objects with an array including newer objects in TypeScript?
body: <p>For example: I have an array of objects like this:</p>
  
  <pre><code>let arrayOfObjects: [
      { "id": 0, "name": "Available" },
      { "id": 1, "name": "Ready" },
      { "id": 2, "name": "Started" }
  ];
  </code></pre>
  
  <p>Now I want to replace or overwrite the array above with the same array, but including different values (same keys, different values):</p>
  
  <pre><code>let arrayOfObjects: [
      { "id": 0, "name": "Not Available" },
      { "id": 1, "name": "Not Ready" },
      { "id": 2, "name": "Not Started" }
  ];
  </code></pre>
  
  <p>How can this be done in TypeScript?</p>