Skip to content

Instantly share code, notes, and snippets.

@sharkyak
Created April 7, 2020 05:15
Show Gist options
  • Save sharkyak/c9fa0c39dbbc4428f01d97596c0c2216 to your computer and use it in GitHub Desktop.
Save sharkyak/c9fa0c39dbbc4428f01d97596c0c2216 to your computer and use it in GitHub Desktop.
polar express polexp parcel summary price
[...$$('.pricepop')].reduce((prev, curr) => prev + parseFloat(curr.innerText.slice(0, -2)), 0)
@sharkyak
Copy link
Author

sharkyak commented Apr 7, 2020

[...$$('.pricepop')].reduce((prev, curr) => prev + +curr.innerText.slice(0, -2), 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment