Skip to content

Instantly share code, notes, and snippets.

@LeonFedotov
Last active February 20, 2018 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeonFedotov/08a24bb1836db803ccf1817139491ab7 to your computer and use it in GitHub Desktop.
Save LeonFedotov/08a24bb1836db803ccf1817139491ab7 to your computer and use it in GitHub Desktop.
protextme sum hours
Array
.from(table.children)
.filter(({className}) => className == 'data-row')
.map(({children}) => children[7].children[0].innerHTML.trim())
.map((s) => parseFloat(s, 10))
.reduce((a,b) => a+b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment