Is there a LINQ.JS equivalent to the SQL "in" operator that I can use with the following array:
var fruits = [
{name:"apple" , color:"red" }
{name:"banana" , color:"yellow" }
{name:"cucumber" , color:"green" }
{name:"cherry" , color:"red" }
{name:"strawberry" , color:"red" }
{name:"orange" , color:"orange" }
{name:"lemon" , color:"yellow" }
{name:"tangerin" , color:"orange" }
{name:"grape" , color:"purple" }
]
I am looking for a LINQ.JS query that will retrieve all red and yellow fruits. I need something similar to this SQL command:
select * from fruits where color in ('red','yellow')