daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Dec 16th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. return Object.keys(batch).reduce(function(result, key) {
  2.   let total = batch[key].Count2017 + batch[key].Count2018;
  3.   result.Batch[key] = {
  4.     BatchID: key,
  5.     Name: batch[key].Name,
  6.     Total: total
  7.   };
  8.   result.GrandTotal += total;
  9.   return result;
  10. }, { Batch: {}, GrandTotal: 0 });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top