It always feels like we keep reinventing Lisp. You could do something like:
['contains?', ['list', 1, 2, 3], 1]
Instead of: {
$contain: {
foo: 1
}
}, {
foo: [ 1, 2, 3 ]
}