Skip to content

function_each

Wesley de Groot edited this page Oct 30, 2015 · 31 revisions
            	     _    _____ 
        	        | |  / ____|
    	            | |  | (___ 
	            _   | |  \___  \
 ______    _   | |__| |  ____) |
|______|  (_)   \____/  |______/
                    v0.0.6 Final

Function each

_.each(myArr, callback_int)


Walk trough array and peform callback

Parameter list

Type @var Description Required
object [object] Wrapper Optional
array myArr Array to walk trough Required
function callback_int Callback function to call Required

Example:

_.each(['a','b','c'], function(i,v){alert('count '+i+', value: '+v);});

_.each({a:'b',c:'d'}, function(i,v){alert('key '+i+', value: '+v);});


Returns:

array




[Back to function list](https://github.com/wesdegroot/_.js/wiki/Function%20List)
Clone this wiki locally