Socket
Socket
Sign inDemoInstall

async-array-reduce

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-array-reduce

Async reduce.


Version published
Weekly downloads
62K
decreased by-17%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 01 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc