I am trying to get the SUM of a field of an object using For loop.
enter code here const categories = []; const datos = []; const getCounts = (serviceData)