Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for (const item of list) {
- calcTotal({item });
- }
- calcTotal( {x, y, z, a} ) {
- new += x;
- current += y;
- amount += z;
- currntAmount += a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement