I have an many object with structure of:
[{
n_vId: 1,
s_vName: 'test',
d_date: '2016-03-15 00:00:00'
f_a: 0,
f_b: 0,
f_c: 0,
f_d: 4,
f_e: 0,
f_f: 0.1,
f_g: 0
},
{
n_vId: 2,
s_vName: 'test',
d_date: '2016-03-15 00:15:00'
f_a: 1,
f_b: 1,
f_c: 0,
f_d: 4,
f_e: 0,
f_f: 0.1,
f_g: 0
}]
i want this object transform to
a = [
{
date: '2016-03-15 00:00:00',
a: 0
},
{
date: '2016-03-15 00:15:00',
a: 1
}
]
b = [
{
date: '2016-03-15 00:00:00',
b: 0
},
{
date: '2016-03-15 00:15:00',
b: 1
}
]
...
i can transform that. but my process is so complicated i think. so, would you advice me right process? now i use lodash but can use underscore or another js modules.