New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@annexe/fn.partial

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@annexe/fn.partial

A utility function to partially apply function arguments

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@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

Keywords

partial application

FAQs

Package last updated on 21 Apr 2021

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