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

fn-pasta

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fn-pasta - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

fn-pasta.js

@@ -28,3 +28,3 @@ // pasta.js

var self = this
if (!(times >= 2)) times = 2
if (!(times >= 2)) times = (fn.length > 1 ? fn.length : 2)
return function currying (arg, args) {

@@ -31,0 +31,0 @@ args || (args = [])

{ "name": "fn-pasta"
, "version": "0.0.7"
, "version": "0.0.8"
, "author": "Nick Niemeir <nick.niemeir@gmail.com> (http://nrn.io)"

@@ -4,0 +4,0 @@ , "main": "fn-pasta.js"

@@ -49,3 +49,7 @@ var p = require('../fn-pasta')()

t.equal(p.curry(add)(1)(1), 2, 'Curry default')
function addd (a, b, c) {
return a + b +c
}
t.equal(p.curry(addd)(1)(2)(3), 6, 'Curry number of args defined')
t.equal(p.curry(sum)(1)(2), 3, 'Curry twice for undefined args')
t.equal(p.curry(sum, 5)(1)(2)(3)(4)(5), 15, 'Curry 5 times')

@@ -52,0 +56,0 @@

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