I have a table like below:
<table class="job-details">
<tr class="spacer-row"><td class="graphic-cell"></td><td class="visible-cell"></td></tr>
<tr class="data-row unknown-bin-type" data-toggle="tooltip" title="Waste-15-021219">
<td class="graphic-cell"></td>
<td class="visible-cell reschedule-cell">
<label for="Friday">Friday</label>
<label for="">10/01/2020</label>
<label for="Deliver_CADDY">Deliver CADDY</label>
</td>
</tr>
<tr class="spacer-row"><td></td></tr>
<tr class="data-row non-recyclable-bin-type" data-toggle="tooltip" title="Waste-15-091219">
<td class="graphic-cell"></td>
<td class="visible-cell">
<label for="Monday">Monday</label>
<label for="">13/01/2020</label>
<label for="Empty_Standard_General_Waste">Empty Standard General Waste</label>
</td>
</tr>
<tr class="spacer-row"><td></td></tr>
<tr class="data-row recyclable-bin-type" data-toggle="tooltip" title="Waste-11 Organic-091219">
<td class="graphic-cell"></td>
<td class="visible-cell">
<label for="Monday">Monday</label>
<label for="">20/01/2020</label>
<label for="Empty_Standard_Mixed_Recycling">Empty Standard Mixed Recycling</label>
</td>
</tr>
<tr class="spacer-row"><td></td></tr>
<tr class="data-row green-waste-bin-type" data-toggle="tooltip" title="Waste-15-161219">
<td class="graphic-cell"></td>
<td class="visible-cell">
<label for="Monday">Monday</label>
<label for="">20/01/2020</label>
<label for="Empty_Standard_Garden_Waste">Empty Standard Garden Waste</label>
</td>
</tr>
<tr class="spacer-row"><td></td></tr>
<tr class="data-row non-recyclable-bin-type" data-toggle="tooltip" title="Waste-15-231219">
<td class="graphic-cell"></td>
<td class="visible-cell">
<label for="Monday">Monday</label>
<label for="">27/01/2020</label>
<label for="Empty_Standard_General_Waste">Empty Standard General Waste</label>
</td>
</tr>
<tr class="spacer-row"><td></td></tr>
<tr class="data-row green-waste-bin-type" data-toggle="tooltip" title="Waste-15-301219">
<td class="graphic-cell"></td>
<td class="visible-cell">
<label for="Monday">Monday</label>
<label for="">03/02/2020</label>
<label for="Empty_Standard_Garden_Waste">Empty Standard Garden Waste</label>
</td>
</tr>
<tr class="spacer-row"><td></td></tr>
<tr class="data-row recyclable-bin-type" data-toggle="tooltip" title="Waste-11 Organic-060120">
<td class="graphic-cell"></td>
<td class="visible-cell">
<label for="Monday">Monday</label>
<label for="">03/02/2020</label>
<label for="Empty_Standard_Mixed_Recycling">Empty Standard Mixed Recycling</label>
</td>
</tr>
<tr class="spacer-row"><td></td></tr>
<tr class="data-row non-recyclable-bin-type" data-toggle="tooltip" title="Waste-15-060120">
<td class="graphic-cell"></td>
<td class="visible-cell">
<label for="Monday">Monday</label>
<label for="">10/02/2020</label>
<label for="Empty_Standard_General_Waste">Empty Standard General Waste</label>
</td>
</tr>
<tr class="spacer-row"><td></td></tr>
<tr class="data-row green-waste-bin-type" data-toggle="tooltip" title="CADDY DELIVERY-Caddy Delivery 145-100120">
<td class="graphic-cell"></td>
<td class="visible-cell">
<label for="Monday">Monday</label>
<label for="">17/02/2020</label>
<label for="Empty_Standard_Garden_Waste">Empty Standard Garden Waste</label>
</td>
</tr>
<tr class="spacer-row"><td></td></tr>
<tr class="data-row recyclable-bin-type" data-toggle="tooltip" title="Waste-15-130120">
<td class="graphic-cell"></td>
<td class="visible-cell">
<label for="Monday">Monday</label>
<label for="">17/02/2020</label>
<label for="Empty_Standard_Mixed_Recycling">Empty Standard Mixed Recycling</label>
</td>
</tr>
<tr class="spacer-row"><td></td></tr>
</table>
What I'm trying to do is extract each td with a call of visible-cell
into an object like so:
{['Friday','10/01/2020','Delivery Caddy'],['Monday','13/01/2020','Empty Standard General Waste']}
So far I've got everything into an array, but I cant figure out how to separate it as above
$('.visible-cell label').each(function() {
const label = $(this).text();
labels.push(label)
});