dei

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i dei

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • sugarshin