jQuery.grep()

Finds the elements of an array which satisfy a filter function. The original array is not affected.

.text()

Get the combined text contents of each element in the set of matched elements, including their descendants, or set the text contents of the matched elements.