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

@yurkimus/curry

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yurkimus/curry

JavaScript curry utility.

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27
decreased by-80.29%
Maintainers
0
Weekly downloads
 
Created
Source

Curry

JavaScript curry utility.

Table of Contents

  • Installation
  • Exports
  • License

Installation

npm

npm install @yurkimus/curry

urls

"@yurkimus/curry": "npm:@yurkimus/curry"
"@yurkimus/curry": "github:yurkimus/curry"
"@yurkimus/curry": "https://raw.githubusercontent.com/yurkimus/curry/main/source/index.js"

Exports

curry

Definition:
curry :: Function -> Number -> Function
Example:
curry(
  // predicate, no need to specify length unless using variadic function parameters
  (a, b) => a + b,
)(1)(2) // => 3

curry(
  // predicate
  (a, ...numbers) => a + numbers.reduce((x, a) => x + a, 0),
  // specified length to handle variadic function parameters
  2,
)(1)(2, 3) // => 6

License

MIT

FAQs

Package last updated on 18 Dec 2024

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