rsandor/gury

.each should have a callback with index and object, not object and index

Opened this issue · 0 comments

.each currently uses a callback where arguments are in order object, index, but jQuery for its .each uses first index and then object. It is really unintuitive to use different arguments order in the code for a similar method, so I would propose an API change, .each should use a callback with arguments in order same as in jQuery: first index, then object.