# @typed/curry

> Well-typed curry functions for TypeScript

Latest version **1.0.1** (published 2017-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @typed/curry
pnpm add @typed/curry
yarn add @typed/curry
bun add @typed/curry
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-01-07 |
| First published | 2017-01-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 16 |
| Author | Tylor Steinberger |
| Maintainers | typed |
| Keywords | typescript, curry, functional |

## Links

- npm: https://www.npmjs.com/package/@typed/curry
- Repository: https://github.com/TylorS/typed-curry
- Homepage: https://github.com/TylorS/typed-curry#readme
- Issues: https://github.com/TylorS/typed-curry/issues
- npm.io page: https://npm.io/package/@typed/curry

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-01-07
- 1.0.0 — 2017-01-07

## README

# @typed/curry

> A typescript version of curry for functional programming

## Let me have it
```sh
npm install --save @typed/curry
# or
yarn add @typed/curry
```

One caveat is that it only accepts functions of arity 5 or less, as I believe
functions with more than 3, and especially 5, parameters to be an anti-pattern.

## Basic usage
```typescript
import { curry } from '@typed/curry';

const add = curry((a: number, b: number) => a + b);

const add1 = add(1);
const add2 = add(2);

console.log(add1(5)) // 6
console.log(add2(5)) // 7
```

---
_Source: https://npm.io/package/@typed/curry · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
