Using javascript Array methods, I want to flatten this:
accounts: [
{
id: 129,
contacts: [932, 552, 803]
},
{
id: 433,
contacts: [932, 606]
}
]
into this:
[932,552,803,606]
Notice the unique contacts. Any solutions?