Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arity-n

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arity-n - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

11

N.js

@@ -0,4 +1,13 @@

var arityFn = [
require('./0'),
require('./1'),
require('./2'),
require('./3'),
require('./4'),
require('./5')
];
module.exports = function(fn, n) {
if (n && n <= 5) {
return require('./' + n)(fn);
return arityFn[n](fn);
} else {

@@ -5,0 +14,0 @@ return fn;

2

package.json
{
"name": "arity-n",
"version": "1.0.3",
"version": "1.0.4",
"description": "Wraps a function with a function of a sertain arity.",

@@ -5,0 +5,0 @@ "main": "N.js",

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