Here is where I want to implement my OR
return bigData.country==["US"||"JP"] && (bigData.description=="iPhone 4S")
[ A
||B||C||... ]&&[ X||Y||Z||....]
As you can see above, I am returning objects, if the value of key of object bigData.country is either US or JP, AND bigData.description is either iPhone 4S, can also be more devices.
I'm able to get the desired result, by
return (bigData.country=="US"||bigData.country=="JP") && (bigData.description=="iPhone 4S")
But as I can have convenience to add and remove from an Array, I am trying to use an array. Suggestion to use something different is also welcomed.
If you want to play around with my code here is REPL