Skip to content

flbeta_function_each

Wesley de Groot edited this page May 2, 2017 · 35 revisions
            !             _          
                         (_)         
            	          _    _____ 
        	        | |  / ____|
    	            | |  | (___ 
	            _   | |  \___  \
 ______    _   | |__| |  ____) |
|______|  (_)   \____/  |______/
                     v0.0.8 Beta

Function each

_.each(myArr, callbackInt)



Walk trough array and peform callback


🌍 Universal function

This function is for the Command Line Interface and Websites!


Parameter list

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

Example:

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

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


Returns:

array




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