Guest User

Untitled

a guest
Jun 20th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. const economy = bowldata.reduce( (a,{season, econ}) => {
  2.  
  3.  
  4. a[season] = a[season] + parseInt(econ);
  5.  
  6.  
  7. return a;
  8. }, {});
  9.  
  10. console.log(economy);
  11.  
  12. a[season] = a[season] + parseInt(econ);
  13.  
  14. a[season] = (a[season] ||0 ) + parseInt(econ);
Add Comment
Please, Sign In to add comment