Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/rambda.js>partialObject

Faster and smaller alternative to Ramda
Go to Latest
function partialObject
import { partialObject } from "https://deno.land/x/rambda@9.3.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