Created
January 18, 2020 09:08
-
-
Save a-eid/7a8d8095957532b5bc6430e0038c07d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function total(){ | |
return [...document.querySelectorAll("td.text-right")].reduce((a,b) => { | |
return a + parseFloat( b.innerText.replace(/[,$]/g, "")) | |
}, 0) | |
} |
Author
a-eid
commented
Jun 27, 2021
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment