實施例的變換對象數組到一個對象:如何通過Lodash從這個
[
{"name":"tony", "age":14},
{"name":"jacky", "age":23},
{"name":"lucy", "age":34},
{"name":"sam", "age":15},
{"name":"jay", "age":31}
]
到:
{
"tony": [],
"jacky": [],
"lucy": [],
"sam": [],
"jay": []
}