I have this array:
array = [{key: "6S", values: { 3: [{Id: "1234a"}, {Id: "1234b"}]}},
{key: "7S", values: { 5: [{Id: "1534a"}], 4: [{Id:"1534a"}]}}]
I want to map "3", "5" and "4" (that are actually keys from another list inside the big list) from the values...something like this
array.map(function(d)
{ return d.values."key";}));
In order to access the values 3, 5 and 4 I can use a for loop. However, there is a way to access values directly?
Object.keys()work?Object.keys(d.values)