A common pattern within jQuery is a method that takes a callback which is passed an element of an array and its index within that array. However, it seems completely random
Since Javascript lets you ignore parameters that you aren't using (i.e., you can define a callback function which takes only one parameter, even if it will be called with two), generally, the first parameter is the one you are mostly likely to be using. (Actually, the this
varaible is usually the data item you'r most likely to use, followed by the first parameter, etc)