Skip to content

Easily loop through Arrays and Dictionaries in JacaScript with a return value

License

Notifications You must be signed in to change notification settings

Rampaigh/JavaScript-Callback-Loops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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);
});

About

Easily loop through Arrays and Dictionaries in JacaScript with a return value

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published