I am trying to extract array of nodes from multiple objects using ramda.
Sample data:
const testData = {
"117590": {
"id": 117590,
"nodes": [
117864,
117865,
117866
]
},
"117591": {
"id": 117591,
"nodes": [
117867,
117868
]
}
}
I tried to use such query: R.pluck('nodes', testData);
But as a result I got:
{"117590": [117864, 117865, 117866], "117591": [117867, 117868]}
How to combine all nodes in one array? Here is my Ramda editor link