Use native Array.each method instead of for loop in jQuery.each
Use the native every method in jQuery.each only for Array-like objects

CAVEAT: This does not pass tests for sparse arrays since `callback is invoked only for indexes of
the array which have assigned values; it is not invoked for indexes which have been deleted or which
have never been assigned values.`
This is hence not suitable to be committed upstream.