crcn/sift.js — pull request #12 by chrisfarms (2012-05-03 15:38:16+00:00)
Title: Mimic mongodb "Values in Array" behavior

see: [MongoDB: Values in Array](http://www.mongodb.org/display/DOCS/Advanced+Queries#AdvancedQueries-ValueinanArray)

To look for the value "red" in an array field colors:

```javascript
sift( { colors : "red" } , [
{colors: ["red"]},
{colors: ["green","yellow"]},
{colors: ["blue","red"]}
])

=> 2 results
```

That is, when "colors" is inspected, if it is an array, each value in the array is checked.

**guess this pull would affect people who are relying on the current '==' behaviour.