We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29a9544 commit f454097Copy full SHA for f454097
src/core.js
@@ -100,6 +100,18 @@ jQuery.fn = jQuery.prototype = {
100
return this.eq( -1 );
101
},
102
103
+ even: function() {
104
+ return this.filter( function( i ) {
105
+ return ( i + 1 ) % 2;
106
+ } );
107
+ },
108
+
109
+ odd: function() {
110
111
+ return i % 2;
112
113
114
115
eq: function( i ) {
116
var len = this.length,
117
j = +i + ( i < 0 ? len : 0 );
0 commit comments