title: Knockout: How to use checked binding with observable array of whole objects, but compare individual properties?
body: <p>My problem is as follows: I am trying to use a checkbox binding to bind an array of objects to a list of selected objects. My problem is, I would like to bind the entire object to the list, as follows:</p>
  
  <pre><code>&lt;div data-bind="foreach: items"&gt;
      &lt;div&gt;
          &lt;input type="checkbox" data-bind="checked: $parent.selectedItems, value: $data"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Where <em>items</em> is the list of objects to be bound to the <em>selectedItems</em> observable array. </p>
  
  <p>However, to check if the value is "checked", I would like to compare individual object properties. The reason for this is that I am gathering objects from different sources, and some represent the same object, but they are not entirely identical. Furthermore, I need to use certain sub-properties of the selected objects in other functions, so I need the entire object to be bound to the observable array.</p>
  
  <p>Thanks in advance for any suggestions!</p>