JavaScript Callback Loops
Loop and Iterate through Arrays and Dictionaries in JavaScript.
ForEach.js
Use the ForEach function to loop through arrays.
Usage
var array = [...];
ForEach(array, function(index, value) {
console.log('The value: ' + value + ' is at index: ' + index);
});Iterate.js
Use the Iterate function to iterate through dictionaries.
Usage
var dict = {...};
Iterate(dict, function(key, value) {
console.log('The value: ' + value + ' is at key: ' + key);
});