
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
just-curry-it
Advanced tools
Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.
npm install just-curry-it
yarn add just-curry-it
Return a curried function
import curry from 'just-curry-it';
function add(a, b, c) {
return a + b + c;
}
curry(add)(1)(2)(3); // 6
curry(add)(1)(2)(2); // 5
curry(add)(2)(4, 3); // 9
function add(...args) {
return args.reduce((sum, n) => sum + n, 0)
}
var curryAdd4 = curry(add, 4)
curryAdd4(1)(2, 3)(4); // 10
function converter(ratio, input) {
return (input*ratio).toFixed(1);
}
const curriedConverter = curry(converter)
const milesToKm = curriedConverter(1.62);
milesToKm(35); // 56.7
milesToKm(10); // 16.2
Lodash is a popular utility library that provides a wide range of functions for common programming tasks, including currying. The `_.curry` method in Lodash offers similar functionality to just-curry-it but comes with the added benefit of a comprehensive suite of other utilities.
Ramda is a functional programming library for JavaScript that emphasizes immutability and side-effect-free functions. It provides a `R.curry` function that offers currying capabilities similar to just-curry-it, but it is part of a larger set of functional programming tools.
The `curry` package is a lightweight utility specifically designed for currying functions. It offers similar functionality to just-curry-it but is focused solely on currying without additional utilities.
FAQs
return a curried function
The npm package just-curry-it receives a total of 356,926 weekly downloads. As such, just-curry-it popularity was classified as popular.
We found that just-curry-it demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.