Skip to main content
Module

x/rambda/mod.ts>partialObject

Faster and smaller alternative to Ramda
Latest
function partialObject
import { partialObject } from "https://deno.land/x/rambda@v9.2.0/mod.ts";

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