for api.columns() to in datatable code example
Example: datatables api.columns()
table.columns().every( function () {
var data = this.data();
// ... do something with data(), or this.nodes(), etc
} );
table.columns().every( function () {
var data = this.data();
// ... do something with data(), or this.nodes(), etc
} );