title: Backbone Marionette Fetch a Collection to an Array
body: <p>I'm a newbie in Backbone and Marionette, I'm so confused when try to call a Backbone Collection and convert it to an array.</p>
  
  <p><strong>It's my Collection Code</strong></p>
  
  <pre><code>programming.module("Program", function(Program, programming, Backbone, Marionette, $, _){
      Program.salesM = Backbone.Model.extend({
          defaults : {
  
          }
      })
  
      Program.salesC = Backbone.Collection.extend({
          model : Program.salesM
      })
  
      var data;
      var initializeData = function(){
          data = new Program.salesC([
              {
                  id : "1",
                  tanggal : "12/08/2016",
                  produk : "T-Shirt",
                  jumlah : "1"
              },
              {
                  id : "2",
                  tanggal : "12/08/2016",
                  produk : "T-Shirt",
                  jumlah : "2"
              },
              {
                  id : "3",
                  tanggal : "13/08/2016",
                  produk : "Case",
                  jumlah : "3"
              },
              {
                  id : "4",
                  tanggal : "13/08/2016",
                  produk : "T-Shirt",
                  jumlah : "2"
              },
          ])
      }
  
      var API = {
          getData : function(){
              if(data===undefined){
                  initializeData();
              }
              return data;
          }
      }
  
      programming.reqres.setHandler("data:entities", function(){
          return API.getData();
      })
  
  
  })
  </code></pre>
  
  <p>And here is a part code from another file to request the Collection</p>
  
  <pre><code>var dataChart = programming.request("data:entities");
  console.info(dataChart.get("tanggal")
  </code></pre>
  
  <p>It's not error, But i confused a bit with that. I try to make <code>dataChart.get("tanggal")</code> but it return undefined</p>
  
  <p>I try to get and fetch the Collection into this format but I can't</p>
  
  <pre><code>var tanggal = ['tanggal on id 1','tanggal on id 2','tanggal on id 3']
  var jumlah = ['jumlah on id 1','jumlah on id 2','jumlah on id 3']
  </code></pre>
  
  <p>So confused. please anyone help me.</p>