title: jQuery on check, add or update array object item
body: <p>I have a series of checkboxs and on change event like so:</p>
  
  <pre><code>$(".checkbox").on('change', function () {
            UpdateHolder($(this).attr('id'), customerID, this.checked);
  });
  
  
  function UpdateHolder(questionid, customerid, checked) {
          holder.push({ questionid: questionid, customerid: customerid, checked: checked });
          console.log(holder);
      }
  </code></pre>
  
  <p>with this, I am able to add an item to the array, but my question is how would I update an item ? I only want to update if a checkbox is selected or not.</p>