Se Datatable for NULL JS

var table = $('#idTable').DataTable();

if ( ! table.data().any() ) {
    alert( 'Empty table' );
}
Crowded Cobra