Created
March 17, 2018 23:55
-
-
Save jordanhudgens/157689919ee99cca2d81ee03232218cd to your computer and use it in GitHub Desktop.
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
const allTopics = document.querySelectorAll('.topics') | |
allTopics | |
copy(allTopics) | |
const arrtopicssample = Array.prototype.slice.call(allTopics); | |
arrtopicssample | |
arrtopicssample[0] | |
arrtopicssample[0].textContent | |
const sampleTopicList = arrtopicssample.map(e => e.textContent) | |
copy(saampleTopicList) | |
/* | |
[ | |
"RUBY ON RAILS", | |
"VIM", | |
"VIM", | |
"VIM", | |
"VIMCTAGS", | |
"VIMTUTORIAL", | |
"LINUXZSHELL", | |
"VIMWINDOWS", | |
"TMUXVIMPATHOGEN", | |
"LINUXUNIX", | |
"RUBY ON RAILSAWS", | |
"CODINGRUBY ON RAILSTUTORIALJQUERYJAVASCRIPT", | |
"RUBY ON RAILSROUTING", | |
"MACHINE LEARNING", | |
"RUBY ON RAILS", | |
"RUBY ON RAILSBOOTSTRAPBUG FIXES", | |
"TUTORIALMACHINE LEARNING", | |
"AWSTUTORIALLEXCHAT BOTMACHINE LEARNING", | |
"RUBY ON RAILSACTIONCABLE", | |
"JWTRUBY ON RAILS" | |
] | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment