@annexe/fn.partial
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@annexe/partial

A function to partially apply function arguments.

Installation

To install @annexe/partial:

Yarn

yarn add @annexe/partial

NPM

npm install @annexe/partial

Usage

import { partial } from '@annexe/partial';

const sum = (a: number, b: number) => a + b;
const partialFn = partial<number[], number[], number>(sum, 1);
console.log(partialFn(2)); // prints 3

Package Sidebar

Install

npm i @annexe/fn.partial

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

3.79 kB

Total Files

14

Last publish

Collaborators

  • heyjules