Requesting text from a table row using jquery returns ”

I started using jQuery around a week ago and i wanted to do something like a search from an existing table.
when calling .text() from any row it shows and empty string ” making it impossible to compare searched string to the existing ones in the table.

HTML:

<tbody id="test">
    <tr>
        <td>example</td>
        <td>1</td>
    </tr>
    <tr>
        <td>example</td>
        <td>2</td>
    </tr>   
    <tr>
        <td>example</td>
        <td>3</td>
    </tr>   
    <tr>
        <td>example</td>
        <td>4</td>
    </tr>
</tbody>

jQuery:

`$(document).ready(() => {
    $('#test tr').filter(() => {
        console.log($(this).text())
    });
}):`

This returns 4 instances of ”