title: Can you put a string into an array using something other than .push?
body: <p>What I am trying to do Is i have to get domain results from google images. I am using a GM_xmlhttpRequest to get the info then lopping thru them and putting into an array using .push().
  The problam I am having is that I have to count the number of results and if it is under a set amount I have to do another search and so on. So using .push to add the items to the array each time it adds one it triggers my if statement.</p>
  
  <pre><code>       GM_xmlhttpRequest({
              method:   "GET",
              url:      link,
              onload: function(r) {
                  var gurl=[];
                  for (i=0; i&lt;10; i++){
                      gurl.push($(r.responseText).find('div.nJGrxf.FnqxG').eq(i).text());
                      let editedList = [...new Set(gurl)];    
                  }
                    if (editedList.length &lt; 10){
                      window.open(nextSearch)
                      }
              }
          });`
  </code></pre>
  
  <p>I been trying for hours to find a better method of doing this, any help would be greatly appericated.</p>