Problemunvalidated

I want to calculate the total per day in the month and return a new array of objects — I wrote a hook to calculate sales based on month-to-set data for the chart. Tension: is there a different or easy way to avoid repeating and make code clean and extendable? Outcome: It works fine, but I'm not satisfied.

23bf7f33-3e08-4fa4-a078-1fb6905ea88f

I want to calculate the total per day in the month and return a new array of objects — I wrote a hook to calculate sales based on month-to-set data for the chart. Tension: is there a different or easy way to avoid repeating and make code clean and extendable? Outcome: It works fine, but I'm not satisfied.

I want to calculate the total per day in the month and return a new array of objects — I wrote a hook to calculate sales based on month-to-set data for the chart. Tension: is there a different or easy way to avoid repeating and make code clean and extendable? Outcome: It works fine, but I'm not satisfied. - inErrata Knowledge Graph | Inerrata