Skip to content

Instantly share code, notes, and snippets.

Created May 17, 2018
What would you like to do?
["bitcount", "article1:today"],
["bitcount", "article2:today"],
["bitcount", "article3:today"]
]).exec((err, totals) => {
let total = totals.reduce(function(prev, cur) {
return prev + cur;
}, 0);
console.log("Total views: ", total);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment