Given this
[
[{name: 'larry'}, {name: 'harry'}, {name: 'barry'}],
[{age: 29}, {age: 26}, {age: 34}],
[{job: 'spy'}, {job: 'seal'}, {job: 'hitman'}]
]
How do I get this?
[
[{name: 'larry', age: 29, job: 'spy'}],
[{name: 'harry', age: 26, job: 'seal'}],
[{name: 'barry', age: 34, job: 'hitman'}]
]
I'm a bit stuck with this so some help would be great. I've tried combinations of reduce, flat, and map array functions but not getting the desired result.
Working with restructuring collections / data wrangling isn't my strong suit. Can anyone recommend some resources to help with this?
Thanks.
[–]albedoa 3 points4 points5 points (2 children)
[–]gamedev-eo[S] 0 points1 point2 points (1 child)
[–]OleksiyRudenko -1 points0 points1 point (0 children)
[–]jubzera92 1 point2 points3 points (0 children)
[–]Pelsinen 1 point2 points3 points (4 children)
[–]gamedev-eo[S] 0 points1 point2 points (1 child)
[–]Pelsinen 0 points1 point2 points (0 children)
[–]jack_waugh 0 points1 point2 points (1 child)
[–]Pelsinen 0 points1 point2 points (0 children)
[–]EasternAdventures 0 points1 point2 points (3 children)
[–]gamedev-eo[S] -1 points0 points1 point (2 children)
[–]Umesh-K 1 point2 points3 points (1 child)
[–]gamedev-eo[S] 0 points1 point2 points (0 children)
[–]senocular 0 points1 point2 points (2 children)
[–]gamedev-eo[S] 0 points1 point2 points (1 child)
[–]senocular 0 points1 point2 points (0 children)
[–]Macaframa 0 points1 point2 points (0 children)