I humbly ask for forgiveness as I am struggling with figuring out how to accomplish this task. It seems like we need to utilize a map function or something similar, but I am having difficulty grasping it.
Below is the object 'data' that I am working with:
data
[0]:
name: 'Alex'
sex: 'Male'
new_joinee: false
[1]:
name: 'Anna'
sex: 'female'
new_joinee: true
[2]:
name: 'lester'
sex: 'Male'
new_joinee: true
My goal is to transform the above object into the following format:
data
name: 'Alex', 'Anna', 'lester'
sex: 'Male', 'Female','Male'
new_joinee: false,true,true
If anyone could provide guidance on how to achieve this, I would greatly appreciate it.