JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr><td> Name Second-Name </td><td>Email</td></tr>
<tr><td> Name Second-Name </td><td>Email 2</td></tr>
<tr><td> Name Second-Name Third-Name </td><td>Email 3</td></tr>
</table>
<span id="test">TEST: </span>
JavaScript
var name = " Name Second-Name ";
var mail = $('td').filter(function(index) { return $(this).text() === name }).siblings("td:nth-child(2)").map(function() { return $(this).text(); }).get();
$('#test').html($('#test').html()+mail);