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 var valueArray = $('.some').map(function(){
2    return $(this).attr(name);
3 }).get();

Similar patterns with arrays of values

Similar patterns with closed loops

Similar patterns with parallel loops