-
-
Save robotlolita/1177377 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
// create an array of terms from an array of objects | |
for item in trend.search_terms | |
search_terms.push(item.term) | |
// while a part of the array is left | |
while search_terms.length > 0 | |
// create a mini array of 7 items | |
for num in [0..7] | |
x = search_terms.pop() | |
if x? | |
search_string.push(x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment