JavaScript reduce on array of objects failure
Novice JS developer, need some help in identifying what I am doing wrong. I have an array of objects const ll = [{name:"a", ids:[1]}, {name:"b", ids:[2,3]}]; I want to convert it to following [ { name: 'a', ids: null, id:…