I have an array of objects that look similar to this,
[{
name : Client 1,
total: 900,
value: 12000
}, {
name : Client 2,
total: 10,
value: 800
}, {
name : Client 3,
total: 5,
value : 0
}]
What I am wanting is to get 3 arrays from this, an array of name,
[Client 1, Client 2, Client 3]
and array of totals,
[900, 10, 5]
and an array of values,
[12000, 800, 0]
I thought I would be able to something like map or similar but I am very confused about how to use it. Can anyone help me out?