Last active
February 9, 2021 15:33
-
-
Save wanderer06/fe73241297c6879e5ab9f53a20b0b451 to your computer and use it in GitHub Desktop.
Lowest champ mastery needed
This file contains 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
$$('#container tbody tr').map(el => [el.querySelector('td:first-child').innerText, parseInt(el.querySelector('td:last-child').innerText.replace(',', '')), parseInt(el.querySelector('td:nth-child(2)').innerText)]).reduce((accum, item) => item[1] < accum[1] ? item : accum, ['Unknown', Number.MAX_SAFE_INTEGER, '']).map((item, index) => index === 2 ? `${item} -> ${item + 1}` : item) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment