Module

x/rambda/rambda.js>partialObject

Faster and smaller alternative to Ramda
Go to Latest
function partialObject
import { partialObject } from "https://dotland.deno.dev/x/rambda@v9.2.0/rambda.js";

R.partialObject is a curry helper designed specifically for functions accepting object as a single argument.

Initially the function knows only a part from the whole input object and then R.partialObject helps in preparing the function for the second part, when it receives the rest of the input.

Type Parameters

Input
PartialInput
Output

Parameters

fn: (input: Input) => Output
partialInput: PartialInput

Returns

(input: Pick<Input, Exclude<keyof Input, keyof PartialInput>>) => Output