Skip to content

Instantly share code, notes, and snippets.



Created Jan 18, 2020
What would you like to do?
function total(){
return [...document.querySelectorAll("td.text-right")].reduce((a,b) => {
return a + parseFloat( b.innerText.replace(/[,$]/g, ""))
}, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.