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

curry

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

curry

flexible but simple curry function

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.2K
decreased by-35.25%
Maintainers
1
Weekly downloads
 
Created
Source

CURRY

(don't be alarmed I'm doing some commits to this project to test my integration server)

#curry function without anything too clever (... because hunger is the finest spice)

can curry left an right and pass in a context object in one easy call.

var fn = curry([left],function,[right],self)

wrap your curry args in Arrays

calling fn(x) will stick x in between left and right curry ingredients.

left and right are Arrays, and are optional.

i.e.

var fn = curry(funx,[1,2,3])

is the same as

var fn = curry([],funx,[1,2,3])

this makes fn(X) call funx(X,1,2,3)

##calling styles:

in all, there are 8 ways to call the function.

curry([left],fn,[right])
curry(fn,[right])
curry([left],fn)
curry(fn)

curry([left],fn,[right],self)
curry(fn,[right],self)
curry([left],fn,self)
curry(fn,self)

#full test coverage for documented usuage!

> expresso test/curry.expresso.js

FAQs

Package last updated on 14 Sep 2011

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