I have an array of event objects called events. Each event has markets, an array containing market objects.
event
events
markets
market
Try this:
_.filter(events, function(me) { return me.event && me.event.market && me.event.market.outcome && 'test' in me.event.market.outcome });