jQuery loop trough array or elements

#array#each#element#jquery#loop#object
// loop through array
$.each( array, function( key, value ) {
  	console.log( key );
  	console.log( value );
});


// loop through elements with class .element
$('.element').each(function(index, item){
  	console.log( index );
  	console.log( item );
});