title: Adding an object to an array of objects with splice
body: <p>I have an array of objects that looks like this:</p>
  
  <pre><code>event_id=[{"0":"e1"},{"0","e2"},{"0","e4"}];
  </code></pre>
  
  <p>How do I add an element to that array?</p>
  
  <p>I thought of </p>
  
  <pre><code>event_id.splice(1,0,{"0":"e5"});
  </code></pre>
  
  <p>Thanks.</p>