I have an object called val
that looks like this:
{
"outer": [
{
"key": "A",
"value": {
"70": 14,
"84": 22
}
},
{
"key": "B",
"value": {
"70": 9,
"84": 11
}
},
{
"key": "C",
"value": {
"70": 83,
"84": 135
}
}
]
}
I can call this:
console.log(val.outer.find(x => x.key === 'A').value)
{"70": 14, "84": 22}
Is there a way I can print the value relating to "84"?
So for example, I'd like to log where Key = A
and Value Key = 84.