Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how to merge similar key values in same keys in javascripts

0 Kudos

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

1 REPLY 1

mateuszadamus
Active Contributor
0 Kudos

Hello mohan0108

Please use the search engine of your choice before creating new threads.

https://stackoverflow.com/questions/33850412/merge-javascript-objects-in-array-with-same-key

Kind regards,
Mateusz