Skip to content

Instantly share code, notes, and snippets.

@universome
Last active May 3, 2016 20:00
Show Gist options
  • Save universome/330d5cf0ed1536692179 to your computer and use it in GitHub Desktop.
Save universome/330d5cf0ed1536692179 to your computer and use it in GitHub Desktop.
How to count, how much lessons are left in duolingo?
$(".lessons-left")
.map((i,el) => $(el).text())
.toArray()
.filter(Boolean)
.map(s => s.split('/')[1])
.map(Number)
.reduce((a,b) => a + b);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment