JSFiddle - React, Tailwind, and code Playground
HTML
<table id="disparities" class="datatable">
<thead>
<tr>
<th scope="col">Events</th> <th scope="col">White</th> <th scope="col">Black</th> <th scope="col">Hispanic</th><th scope="col">Asian/Pacific Islands</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Hospitalizations</th>
<td>0.00</td>
<td>20</td>
<td>10</td>
<td>5</td>
</tr>
<tr>
<th scope="row">ED Visits</th>
<td>19</td>
<td>90</td>
<td>40</td>
<td>18</td>
</tr>
</tbody>
</table>
JavaScript
var points1 = $('#disparities td:nth-child(2)').map(function() {
var t = $(this).text().match(/\S+/)[0];
if (parseFloat(t) === .0) return 'NA';
else return t;
}).get();
alert(points1);