I want to obtain an Array of all the inner texts of all <th>s in a table.
The following works
$("th").toArray().map(th => th.innerText)
Just wondering if there is a better way in straight jQuery (wo having to convert to Array and then use JS methods)