Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timrogers/array.each.js
A really quick Javascript helper file for adding an "each" method to arrays
https://github.com/timrogers/array.each.js
Last synced: 13 days ago
JSON representation
A really quick Javascript helper file for adding an "each" method to arrays
- Host: GitHub
- URL: https://github.com/timrogers/array.each.js
- Owner: timrogers
- Created: 2011-09-14T20:32:36.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-09-14T21:00:58.000Z (over 13 years ago)
- Last Synced: 2024-11-24T13:43:50.907Z (about 2 months ago)
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Array.each.js
=============A really quick Javascript helper file that adds an each() method to array's, allowing you to loop through them without any extra complications of making your own _for_ loops. Simple but effective.
It's really easy to put into your page - you can get it straight from GitHub:
And then it's really easy to use as well!var fruits = ["bananas", "oranges", "pears"];
fruits.each(function(item) {
alert("I like " + item + "!");
});
---__Created by Tim Rogers. Use this however you like, I don't mind.__