Like to filter data based on properties values from Object Let's say I have an object:
{
A: { value1: 4, value2: 2, value3: 5 },
B: { value1: 2, value2: 5, value3: 8 },
...
}
I want to create object by filtering the object above so I have something like if I filter based on value1: 4 and value2: 2
{
value1: 4,
value2: 2,
value3: 5
}
I am looking for a clean way to accomplish this using Es6.