What would be an elegant way to perform object containment check in JS/Node with similar results to PostgreSQL’s @> operator?
For example, if such a function is named contains(), the following call would evaluate to true:
contains(
{ "foo": [1, 2, 3], "bar": "baz" },
{ "foo": [3, 1] })