Find all images whose source attribute value ends with some string

How can one find all images whose source ends with for example “xyz.jpg”?

Using jQuery?

When I do: jQuery("img[src$='xyz.jpq']") what am I getting back?
Is this an array-like thing or not? I am confused.

Seems like I am getting a single object. How can I get all such objects?