title: Pass an Array as a parameter does not work
body: <p>I am using DataTables.js and want to pass an array as a parameter:</p>
  <p><strong>This piece of code works (see columnDefs):</strong></p>
  <pre><code>    var table = $('#html_table').DataTable({
          paging: false,
          language: {
              searchPlaceholder: &quot;e.g.: .msg, AU2019-00XX&quot;,
              search: &quot;Filter Results&quot;
          },
          order: [
              [response.order_by_column, response.order_by]
          ],
          columnDefs: [
              { width: 70, targets: 0 }, { width: 50, targets: 1 }, { width: 50, targets: 2 },
              {otherStuff...},
              {otherStuff...}
          ]
  </code></pre>
  <p><strong>But this piece of code does not work (see columnDefs):</strong></p>
  <p>Array Creation</p>
  <pre><code>    html_col_width = []
      for(i=0; i&lt;response.html_col_width.length; i++){
          html_col_width.push({
              &quot;width&quot;: response.html_col_width[i],
              &quot;targets&quot;: i
          })
      }
  </code></pre>
  <p>Data Table Creation</p>
  <pre><code>    var table = $('#html_table').DataTable({
          paging: false,
          language: {
              searchPlaceholder: &quot;e.g.: .msg, AU2019-00XX&quot;,
              search: &quot;Filter Results&quot;
          },
          order: [
              [response.order_by_column, response.order_by]
          ],
          columnDefs: [
              html_col_width,
              {otherStuff...},
              {otherStuff...}
          ]
  </code></pre>
  <p>Why is it not possible to pass &quot;html_col_width&quot; as a parameter?</p>