DEV Community



Hello i am react frontend web developer
・1 min read

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,

Discussion (0)