How to get to specified item in jquery array

How to get to specified item in jquery array

I have something like this:

  1. var images = $('#container img'); // my new array
  2. images.get(images.length - 2).addClass('show');
error is like this:


Error: $("#container img").get(images.length - 2).addClass is not a function
I think it's not a big issue