Skip to content

function_each

Wesley de Groot edited this page Jul 31, 2018 · 31 revisions
                     _    _____ 
                    | |  / ____|
                    | |  | (___ 
                _   | |  \___  \
 ______    _   | |__| |  ____) |
|______|  (_)   \____/  |______/
                    v1.0.0 Final

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
Clone this wiki locally