-
-
Notifications
You must be signed in to change notification settings - Fork 3
function_each
Wesley de Groot edited this page Jul 31, 2018
·
31 revisions
_ _____
| | / ____|
| | | (___
_ | | \___ \
______ _ | |__| | ____) |
|______| (_) \____/ |______/
v1.0.0 Final
Walk trough array and peform callback
This function is for the Command Line Interface and Websites!
Type | @var | Description | Required |
object | [object] | Wrapper | Optional |
array | myArr | Array to walk trough | Required |
function | callbackInt | Callback function to call | Required |
_.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); })
array
Back to function list
© Wesley de Groot • CC-BY 4.0 • WDGWV