SteveSanderson/knockout — pull request #357 by ndhoa (2012-03-03 13:13:25+00:00)
Title: checkedInArray binding - checkbox element will behave like checked for observable array of objects/viewmodels

Hi,

While we were working on a project, we needed the "checked" bindings and checkboxes to work with an array of objects / viewModel. But "checked" binding didn't work with object in array very well. So here is "checkedInArray" binding, taking in 2 arguments: "checked" - an observable array that contains all the selected objects; "value": which is the object (needle) to be examined in the aforementioned checked array (haystack). Probably it can be generalized to an isInArray function in future.

Here is a test scenario:
```