How to collect primitive values from each element into a native array using a closed each-loop?

Compact syntax with timing methods:

1
var valueArray = $('.some').each().attr(name).all().get();

Compare this to the old way with more syntactic fluff:

1
2
3
var valueArray = $('.some').map(function(){
   return $(this).attr(name);
}).get();

Similar patterns with arrays of values

Similar patterns with closed loops

Similar patterns with parallel loops