Merge objects inside an array of objects with duplicates I have “available” data and want to convert it into “desired”.