Created
December 5, 2019 14:48
-
-
Save gmolveau/0f9458fc85403d8e8e91e0739eb242b5 to your computer and use it in GitHub Desktop.
dealabs sorted array of prices
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
[...document.querySelectorAll('span.thread-price')].map(elem => parseFloat(elem.innerText.replace("€","").replace(/,/, '.'))).sort(function(a,b) { return a - b;}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment