Async Loop Functions for Node.js
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

build status

Installation

using NPM
npm install forAsync
using git
git clone git@github.com:InspiredJW/forAsync.git

After Installation

import it to your .js file
var forAsync = require('forAsync');

Usage

Upward Loop Function
up( 0, 10, 1, function(i) {
    // Do something
}, function() {
    // callback
});
Downward Loop Function
down( 10, 1, 2, function(i) {
    // Do something
}, function() {
    // callback
});
forEach Loop Function
forEach( Array, function(k, v) {
    // Do something
}, function() {
    // callback
});