Skip to content

Instantly share code, notes, and snippets.

@eugeneware
Created January 8, 2014 04:56
Show Gist options
  • Select an option

  • Save eugeneware/8312007 to your computer and use it in GitHub Desktop.

Select an option

Save eugeneware/8312007 to your computer and use it in GitHub Desktop.
Array.prototype.slice.call(document.querySelectorAll('#package-list > tbody > tr > td:last-child')).map(function (val) { return parseInt(val.innerHTML, 10); }).reduce(function (acc, val) { return acc + val});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment