code: function isDatatable($table){
      if($table.dataTableSettings){
        for(var i = 0; i < $table.dataTableSettings.length; i++){
          var table = $table.dataTableSettings[i].nTable;
          if($table[0] == table){
            return true;
          }
        }
      }
      return false;
    }
docs: Check if a given table has been datatableized (https://datatables.net)
  @param $table
  @return {Boolean}