I tried to aggregate some data and make structured shape. Here is the example of data.and I made first code for aggregate aggregation.Look at that cod
On second day, I fixed filteredData code with indexOf function and push.Even though, It looks dirty still because I used meaningless variables and Two
I tried to devide code into some functions and partsfirst I made aggregate function.and I tried to make function to get unique idsand I used these fun
I fixed Main part to this code in this time