Skip to content

Instantly share code, notes, and snippets.

@gmolveau
Created December 5, 2019 14:48
Show Gist options
  • Save gmolveau/0f9458fc85403d8e8e91e0739eb242b5 to your computer and use it in GitHub Desktop.
Save gmolveau/0f9458fc85403d8e8e91e0739eb242b5 to your computer and use it in GitHub Desktop.
dealabs sorted array of prices
[...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