Last active
August 1, 2016 17:38
-
-
Save vjo/9957123 to your computer and use it in GitHub Desktop.
Find your position in Meetup.com waiting list
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
$("#rsvp-list-waitlist h5") | |
.map(function(i, el) {return {"pos": i, "name": $(el).text()}}) | |
.filter(function(i, el) {return el["name"].indexOf("Your name") >= 0;}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Brilliant! But it should be "pos":i+1 as it's zero based