title: How to slice an array in JavaScript
body: <p>So I have an annoyingly long array as a result of scraping a website. I want to slice this array into objects with seven properties.</p>
  
  <p><strong>I want to get from this:</strong></p>
  
  <pre><code>  [
    ".:j:.Junque.Shoppe",
    "Texas",
    "Liberty",
    "253",
    "0",
    "2",
    "21 minutes, 24 seconds",
    "[Neptune]",
    "Pennsylvania",
    "Liberty",
    "50",
    "0",
    "2",
    "2 minutes, 7 seconds"
    //40 more sets like this
    ]
  </code></pre>
  
  <p><strong>To this:</strong></p>
  
  <pre><code>[
     {
        name: ".:j:.Junque.Shoppe",
        system: "Texas",
        region: "Liberty",
        ping: "253",
        loss: "0",
        lag: "2",
        online: "21 minutes, 24 seconds"
     },
     {
        name: "[Neptune]"
        //(...)
     },
     //(...)
   ]
  </code></pre>