Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

DEPRECATED

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
Octocat-spinner-32 readme.md
readme.md

AsyncArray

A control-flow library that mimics the semantics of JS arrays, plus adds a chainable API and some extra methods.

Install

npm install AsyncArray

API

Require

var AsyncArray = require("AsyncArray");

Constructor

new AsyncArray(elems);

Methods

  • forEach(<func(elem, index)>): Calls func with every element of the array. Returns this.
  • map(<func(elem, index, <cb(err, data)>)>): Calls func with every element of the array and uses data passed to the callback for all following methods.
  • filter(<func>)
  • some(<func test>, <func cb>)
  • every(<func test>, <func cb>)
  • pluck(field)
  • order()
  • flatten()
  • flattenDeep()
  • toArray(<cb>)

//TODO add descriptions

Something went wrong with that request. Please try again.