every-ready
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Every ready Travis CI Build Status

A promise that resolves when multiple values are set.

NPM Badge

Install

npm install every-ready

Usage

const EveryReady = require("every-ready");
const evReady = new EveryReady(2);
 
evReady.readiness[0] = true;
evReady.ready;
// false
 
evReady.readiness[1] = true;
evReady.ready;
// true

API

class EveryReady(expect) extends WheneverReady

expect

Type: number

The amount of values that must be truthy.

instance EveryReady

readiness

Type: array

The readiness values to set.

ready

See WheneverReady docs.

when()

See WheneverReady docs.

Readme

Keywords

Package Sidebar

Install

npm i every-ready

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

4.04 kB

Total Files

6

Last publish

Collaborators

  • richienb