jQuery.grep()

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

jQuery()

Return a collection of matched elements either found in the DOM based on passed argument(s) or created by passing an HTML string.