title: How store all DataTable's data in javascript array after column search?
body: <p>I have tables exactly as described in <a href="https://datatables.net/examples/api/multi_filter.html" rel="nofollow noreferrer">https://datatables.net/examples/api/multi_filter.html</a>. My code structure is exactly the same (please see the full code and demo using the link). </p>
  
  <pre><code>$(document).ready(function() {
      // Setup - add a text input to each footer cell
      $('#example tfoot th').each( function () {
          var title = $(this).text();
          $(this).html( '&lt;input type="text" placeholder="Search '+title+'" /&gt;' );
      } );
  
      // DataTable
      var table = $('#example').DataTable();
  
      // Apply the search
      table.columns().every( function () {
          var that = this;
  
          $( 'input', this.footer() ).on( 'keyup change clear', function () {
              if ( that.search() !== this.value ) {
                  that
                      .search( this.value )
                      .draw();
              }
          } );
      } );
  } );
  </code></pre>
  
  <p>Now I want to return all records (rows) in the table after performing the search operation, either through <code>console.log()</code> or save the data in javascript array. </p>
  
  <p>For example after I search <strong>Accountant</strong> in <code>Position</code> column, I want to get the whole data stored in javascript array</p>
  
  <p><a href="https://i.stack.imgur.com/nO5RA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nO5RA.png" alt="enter image description here"></a></p>
  
  <pre><code>[[Airi Satou,Accountant,Tokyo,33,2008/11/28,$162,700],
  [Garrett Winters,Accountant,Tokyo,63,2011/07/25,$170,750]]
  </code></pre>
  
  <p>I have tried something like <code>console.log( table.row( this ).data() );</code> but didn't work. How to achieve this?</p>