DEV Community

saaiif
saaiif

Posted on

Javascript

Hi Guys I need your help in this logic

Suppose I have an array below
let abc = [{a:"JS"},{a:'Python"},{b:"C++"}]

from the above array I want to put same object property value's in an array and store like below with other objects:

let abc = [{a:["JS","Python"]},{b:"C++"}]

Can Anyone Help to solve this,

Top comments (0)