Hi,
I have noticed there is a difference in parameter orders between callback function of .each() and .grep() functions in jquery.
jQuery.grep( array, function(elementOfArray, indexInArray), [ invert ] )
jQuery.each( collection, callback(indexInArray, valueOfElement) )
Do you have any idea of the possible reasons that they preferred to have indexInArray as the 1st parameter in .each() and as the 2nd in the .grep() function?
Thanks, burak ozdogan