Based on an array like this:
var p = [
{x: [
{x1: 1},
{x1: 2},
]
},
];
How can I get something like this:
// Result of filtering an object where key is 'x1' and value is greater than 1
p === [
{x: [
{x1: 2},
]
},
];