I wish to transform the following array:
[
{
event: "LIB",
block_calendar: "YES",
obs: "Lorem Ipsum",
status: "Block",
},
{
event: "LIB"
block_calendar: "YES"
obs: "Ipsum Lorem"
status: "Block"
}
]
into this object
{
event: "LIB",
obs: ["Lorem Ipsum","Ipsum Lorem"]
}
Is there an ES6 method or approach that can achieve this transformation?