Dojo Store memory querying
<p>I have stored some data like below</p>

<pre><code>var store = new Memory({
    data: [
        {id: 1, name: "one", prime: false },
        {id: 2, name: "two", even: true, prime: true},
        {id: 3, name: "three", prime: true},
        {id: 4, name: "four", even: true, prime: false},
        {id: 5, name: "five", prime: true}
    ]
});
</code></pre>

<p>I can query  all items where "prime" is true like below.</p>

<pre><code>var results = store.query({ prime: true });
</code></pre>

<p>But how can I get the object whose "name" is either "one" or "two" without using foreach on query results like below</p>

<pre><code>var results = store.query().forEach(function(each){
    if(each.name == "one" || each.name == "two") {
        console.log(each)
    }
})
</code></pre>