Basic usage

Create a partial function by providing some — or all — of the arguments the given function needs.

import { partial } from 'radash'

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

const addFive = partial(add, 5)

addFive(2) // => 7

Testing

This _.partial function is 100% covered by tests. See them and contribute at GitHub.

Source

See the source for _.partial on GitHub.