Skip to Content
0
Jun 03, 2020 at 11:05 AM

how to merge similar key values in same keys in javascripts

46 Views

this is my array

var array=[ { "ADJUSTMENT_TYPE": "AP0001", "REV_TYPE": "R" }, { "ADJUSTMENT_TYPE": "AP0001", "REV_TYPE": "E" }, { "ADJUSTMENT_TYPE": "AP0001", "REV_TYPE": "N" } ];

i want like this

[{"ADJUSTMENT_TYPE":"AP0001","REV_TYPE":"R","E","N"} ]

i want this in javascript . can anyone help me

thanks in advance