title: How to Push and Replace Value in Array by Object Key
body: <p>I'm wondering if it's possible to push an object to an array and if the id <code>data-seats</code> already exists replace/overwrite the value on next click.</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>var active_filters = [];
  $("a").on('click', function() {
      active_filters.push({id: "data-seats", value: increment_value });
  });
  </code></pre>