res = {
A: { device001: 1, device002: 2 },
B: { device003: 3, device004: 4 }
};
For the above object in Javascript, I need to get the value of device001, however, device001 is exist but the position of device001 is unknown, for example:
res = {
A: { device004: 4, device002: 2 },
B: { device003: 3, device001: 1 }
};
please tell me how to get that value, thanks.