JSFiddle - React, Tailwind, and code Playground

HTML

<table class="datatable" id="hosprates">
    <caption> hospitalization rates test</caption> <thead>
    <tr>
        <th scope="col">Funding Source</th> <th scope="col">Alameda County</th> <th scope="col">California</th>
        
    </tr>
    </thead>
    <tbody>
        <tr>
            <th scope="row">Medi-Cal</th>
            <td>34.3</td>
            <td>32.3</td>
            
        </tr>
        <tr>
            <th scope="row">Private</th>
            <td>32.2</td>
            <td>34.2</td>
        </tr>
        <tr>
            
            <th scope="row">Other</th>
            <td>22.7</td>
            <td>21.7</td>
        </tr>
    </tbody>
</table>

JavaScript

var funding = $('#hosprates tbody tr').map(function(){
    return [[ $(this).find('th').eq(0).text() ,
            $(this).find('td').eq(0).text() ]];      
    }).get();

alert(funding[0][0] + ' -> ' + funding[0][1]);