# nexxa-partial

> Partial application of arguments to function

Latest version **1.0.1** (published 2016-04-15) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install nexxa-partial
pnpm add nexxa-partial
yarn add nexxa-partial
bun add nexxa-partial
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-04-15 |
| First published | 2016-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.2 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | StefanoMagrassi |
| Maintainers | stefano_magrassi |
| Keywords | function, partial, application, nexxa |

## Links

- npm: https://www.npmjs.com/package/nexxa-partial
- Repository: https://github.com/nexxa/partial
- Homepage: https://github.com/nexxa/partial#readme
- Issues: https://github.com/Nexxa/partial/issues
- npm.io page: https://npm.io/package/nexxa-partial

## Dependencies (1)

- [nexxa-atoa](https://npm.io/package/nexxa-atoa.md) 1.0.2

## Recent versions

- 1.0.1 (latest) — 2016-04-15
- 1.0.0 — 2016-04-15

## README

# partial [![Build Status](https://travis-ci.org/Nexxa/partial.svg?branch=master)](https://travis-ci.org/Nexxa/partial)

Partial application of arguments to function.

## API

### `partial(fn[, arg1[, arg2[, ...]]])`

#### Parameters

* **fn** - *{Function}*
  <br/> The function

* **arg1, arg2, ...** - _{\*}_
  <br/> Partially applied arguments

#### Returns

*{Function}* - The function with supplied arguments partially applied

#### Example

```javascript
function sum(x, y) {
  return x + y;
}

const sum1 = partial(sum, 1);

sum(1, 2); // 3
sum1(2);   // 3
sum1(4);   // 5
```

## Contribution

Fork the repo and send pull requests.

`npm test` to run tests, `npm run lint` to run eslint

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