Added .eq(Number) back in - I'm convinced that it's more useful than the .slice(...
[jquery.git] / src / core.js
index 06d2fd7..d059564 100644 (file)
@@ -363,6 +363,10 @@ jQuery.fn = jQuery.prototype = {
                return this.after( val ).remove();
        },
 
+       eq: function(i){
+               return this.slice(i, i+1);
+       },
+
        slice: function() {
                return this.pushStack( Array.prototype.slice.apply( this, arguments ) );
        },