New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

apr-reduce

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apr-reduce - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

readme.md

19

index.js
const defaults = require('lodash.defaults');
const each = require('apr-engine-each');
/**
* <a id="reduce"></a>
* Reduces `coll` into a single value using an async `iteratee` to return each successive step.
*
* [![](https://img.shields.io/npm/v/apr-reduce.svg?style=flat-square)](https://www.npmjs.com/package/apr-reduce) [![](https://img.shields.io/npm/l/apr-reduce.svg?style=flat-square)](https://www.npmjs.com/package/apr-reduce)
*
* @kind function
* @name reduce
* @param {Array|Object|Iterable} input
* @param {Function} iteratee
* @returns {Promise}
*
* @example
* import reduce from 'apr-reduce';
*
* const sum = await reduce([1, 2, 3], async (sum, item) =>
* new Promise((resolve) => resolve(sum + item))
* );
*/
module.exports = (input, fn, sum, opts) => {

@@ -5,0 +24,0 @@ return each({

2

package.json
{
"name": "apr-reduce",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.com/ramitos/apr/tree/master/packages/reduce",

@@ -5,0 +5,0 @@ "license": "MIT",

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