@typed/sequence
Run things in sequence
Last updated 10 years ago by typed .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @typed/sequence 
SYNC missed versions from official npm registry.

@typed/sequence

Create sequential code easily

Helps you create a sequence of execution.

Let me have it!

npm install --save typed-sequence

API

sequence<T>(items: T[], f: (t: T) => any): Promise<any>

Example

import { sequence } from 'typed-sequence';

function f (n: number): Promise<any> {
  // perform some type of asynchronous (or not) operation

  return new Promise((resolve, reject) {
    // exercise for the reader ;)
  })
}

sequence([1, 2, 3], f);

Current Tags

  • 1.1.0                                ...           latest (10 years ago)

2 Versions

  • 1.1.0                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 9
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 5
Last Month 0
Dependencies (0)
None
Dev Dependencies (23)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE