Skip to content

Instantly share code, notes, and snippets.

@Christilut
Last active June 15, 2017 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Christilut/984cb5d35a8d2cdcdd7c22eef2968b92 to your computer and use it in GitHub Desktop.
Save Christilut/984cb5d35a8d2cdcdd7c22eef2968b92 to your computer and use it in GitHub Desktop.
JSON.stringify($.map($('.devsite-table-wrapper').first().find('tbody tr'), (x) => {
return {
label: $(x).find('td').first().text(),
code: $(x).find('td:eq(1)').text()
}
}), null, ' ')
// dont forget to remove some comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment