0.1.0 • Published 8 years ago

dei v0.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

dei

CircleCI Coverage Status

Dependency Status Devdependency Status npm version License

A delayed iterators

npm i dei

Usage

const { map } = require('dei')

async () => {
  await map([1, 2, 3], n => n ** 2, 100) // [1, 4, 9] After 300ms
}

Methods

  • forEach
  • map
  • reduce
  • reduceRight

Old browsers

webpack with Babel example

// webpack.config.js

module.exports = {
  module:{
    loaders: [
      { test: /\.js$/, loader: 'babel', exclude: /node_modules(?!\/dei)/ },
    ],
  },
  ...
}

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

License

MIT

© sugarshin