i have this array :
here is a snippet :
[
{
"month": 9,
"date": "2022-09-01T00:00:00",
"week_nb": 35,
"total_Value": 31.356,
},
{
"month": 9,
"date": "2022-09-17T00:00:00",
"week_nb": 36,
"total_Value": 67.726,
},
{
"month": 9,
"date": "2022-09-08T00:00:00",
"week_nb": 35,
"total_Value": 98.63,
},
{
"month": 9,
"date": "2022-09-24T00:00:00",
"week_nb": 36,
"total_Value": 55.178,
},
....
i already specify this by month number
i want to get the sum of TOTALE_VALUE of each WEEK_NB
and store it inside a new array containt 2 objects like
{week_number : X, SumOfTotale_value : X },{week_number : X, SumOfTotale_value : X }...