JSPM

async-array-reduce

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 121466
  • Score
    100M100P100Q192521F
  • License MIT

Async reduce.

Package Exports

  • async-array-reduce

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (async-array-reduce) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

async-array-reduce NPM version

Async reduce.

Install

Install with npm

$ npm i async-array-reduce --save

Usage

var reduce = require('async-array-reduce');

reduce(['a', 'b', 'c'], [], function (acc, val, next) {
  acc.push(val + val);
  next(null, acc);
}, function (err, arr) {
  //=> ['aa', 'bb', 'cc']
});
  • arr-reduce: Fast array reduce that also loops over sparse elements.
  • arr-filter: Faster alternative to javascript's native filter method.
  • arr-flatten: Recursively flatten an array or arrays. This is the fastest implementation of array flatten.
  • array-unique: Return an array free of duplicate values. Fastest ES5 implementation.

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on August 01, 2015.