Skip to content

function_each

Wesley de Groot edited this page Oct 23, 2015 · 31 revisions
            	     _    _____ 
        	        | |  / ____|
    	            | |  | (___ 
	            _   | |  \___  \
 ______    _   | |__| |  ____) |
|______|  (_)   \____/  |______/

Function each

_('.wrapper').each(myArr,callback_int)

Walk trough array and peform callback

  • @param object [object] Wrapper
  • @param array myArr Array to walk trough
  • @param function callback_int Callback function to call
  • @return array
  • @example _.each(['a','b','c'], function(i,v){alert('count '+i+', value: '+v);});
  • @example _.each({a:'b',c:'d'}, function(i,v){alert('key '+i+', value: '+v);});


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