title: Unable to iterate over an array passed through data, but when I make a variable of the exact same array then it works
body: <p>This is the array that's passed through to my ajax call: </p>
  
  <p><code>data.comments</code></p>
  
  <pre><code>[['rwerw', '215', '/news/215/'], ['wrwerwer', '215', '/news/215/'], ['Woinfoqf', '215', '/news/215/'], ['Good', '215', '/news/215/'], ["He's good", '215', '/news/215/']]
  </code></pre>
  
  <p>If I do:</p>
  
  <pre><code>data.comments.forEach(function(a, index) {
            console.log('new', a);
          });
  </code></pre>
  
  <p>the <code>forEach()</code> does not work and I get this error in the console:</p>
  
  <pre><code>Uncaught TypeError: data.comments.forEach is not a function
    at Object.success (base.js:180)
    at i (jquery-2.2.1.min.js:2)
    at Object.fireWith [as resolveWith] (jquery-2.2.1.min.js:2)
    at z (jquery-2.2.1.min.js:4)
    at XMLHttpRequest.&lt;anonymous&gt; (jquery-2.2.1.min.js:4)
  </code></pre>
  
  <p>But if I make a variable of the exact same array, then it works:</p>
  
  <pre><code>    var arr = [['rwerw', '215', '/news/215/'], ['wrwerwer', '215', '/news/215/'], ['Woinfoqf', '215', '/news/215/'], ['Good', '215', '/news/215/'], ["He's good", '215', '/news/215/']];
  
      arr.forEach(function(a, index) {
        console.log('new', a);
      });
  </code></pre>
  
  <p>console.log:</p>
  
  <pre><code>new ["rwerw", "215", "/news/215/"]
  new ["wrwerwer", "215", "/news/215/"]
  new ["Woinfoqf", "215", "/news/215/"]
  new ["Good", "215", "/news/215/"]
  new ["He's good", "215", "/news/215/"]
  </code></pre>
  
  <p>Any idea what the problem is?</p>
  
  <p>Edit: ajax call:</p>
  
  <pre><code>$('#user_comments').on('click', function () {
      var user = $(this).data('user');
  
      $.ajax({
          type: 'GET',
          url: '/profile_comments/',
          data: {
              user: user
          },
          success: function (data) {
              console.log(data.comments);
  
              var arr = [['rwerw', '215', '/news/215/'], ['wrwerwer', '215', '/news/215/'], ['Woinfoqf', '215', '/news/215/'], ['Good', '215', '/news/215/'], ["He's good", '215', '/news/215/']];
  
              arr.forEach(function(a, index) {
                console.log('new', a);
              });
  
          }
      })
  
  
  });
  </code></pre>