How Can I Use Something Like .where() as an OR Function?

On the client side, I have a keyed array of messages read from a database with fields like this:

id  topic    message
=========================
11    1      Welcome
12    2      Payment
13    3      Receipt
14    4      Reminder
15    5      Instructions

I want to create a sub array of items with topics 1, 3 and 5, so I need a kind of OR version of .where(), or the ability to do multiple .where() and join them together into a single array.

How can I do that?

Community Page
Last updated: