Table to array simple function made with jQuery
in order to use this function pass id of table from which you need to return an array and call function tableToArray('#id-of-table')
.
This function will return you an array with all data which it contains.