Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. for (const item of list) {
  2. calcTotal({item });
  3. }
  4.  
  5. calcTotal( {x, y, z, a} ) {
  6. new += x;
  7. current += y;
  8. amount += z;
  9. currntAmount += a;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement