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

@unction/reducevalues

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unction/reducevalues - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

index.js
/* eslint-disable immutable/no-let */
import iteratorFunction from "@unction/iteratefunction"
import forEach from "@unction/foreach"

@@ -9,5 +9,5 @@ export default function reduceValues (unction: any => any => any): Function {

iteratorFunction(iterable)(function reduceValuesUnctionInitialIterable (item: any) {
forEach((item: any): Function => () => {
current = unction(current)(item)
})
})(iterable)

@@ -14,0 +14,0 @@ return current

{
"name": "@unction/reducevalues",
"version": "1.0.2",
"version": "1.0.3",
"description": "A curried reduce",

@@ -43,4 +43,4 @@ "keywords": [

"dependencies": {
"@unction/iteratefunction": "1.0.0"
"@unction/foreach": "1.0.0"
}
}

@@ -8,5 +8,5 @@ "use strict";

var _iteratefunction = require("@unction/iteratefunction");
var _foreach = require("@unction/foreach");
var _iteratefunction2 = _interopRequireDefault(_iteratefunction);
var _foreach2 = _interopRequireDefault(_foreach);

@@ -20,5 +20,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

(0, _iteratefunction2.default)(iterable)(function reduceValuesUnctionInitialIterable(item) {
current = unction(current)(item);
});
(0, _foreach2.default)(function (item) {
return function () {
current = unction(current)(item);
};
})(iterable);

@@ -25,0 +27,0 @@ return current;

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