app/shared/precips-directive/precipsDirective.js
// calculate snowfall, if there is any
calculate snowfall, if there is any
calculate snowfall if there is any
function calcSnowfallAmount(snowfallAmount) {
            console.log('snowfall amount', snowfallAmount);
            let snowfallTotal = 0;
            snowfallAmount.forEach((entry) => {
              snowfallTotal += entry.value;
            });
            scope.snowfallTotal = snowfallTotal;
          }
function calcSnowfallAmount ( snowfallAmount ) { console . log ( 'snowfall amount' , snowfallAmount ) ; let snowfallTotal = 0 ; snowfallAmount . forEach ( ( entry ) => { snowfallTotal += entry . value ; } ) ; scope . snowfallTotal = snowfallTotal ; }
calculate snowfall, if there is any
calculate snowfall if there is any