Join the elements in the result set into a string.
join method, combining the contents of the array (in this case the API instance) into a single string.
Array.prototype.join method and is provided as a utility method for the DataTables API. For more information about the original method, please refer to the Mozilla MDN documentation for concat.
function join( separator )
Join the elements in the API instance's result set into a string.
Name Type Optional 1
The string that will be used to separate each element of the result set.
Contents of the instance's result set joined together as a single string.
Create a comma separated string of the data in a column:
var table = $('#example').DataTable(); var combinedData = table .column( 0 ) .data() .join( ', ' );