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

x/rambda/rambda.js>mergeWith

Faster and smaller alternative to Ramda
Latest
function mergeWith
import { mergeWith } from "https://deno.land/x/rambda@9.4.1/rambda.js";

It takes two objects and a function, which will be used when there is an overlap between the keys.

Parameters

fn: (x: any, z: any) => any
a: Record<string, unknown>
b: Record<string, unknown>

Returns

Record<string, unknown>

Parameters

fn: (x: any, z: any) => any
a: Record<string, unknown>
b: Record<string, unknown>

Parameters

fn: (x: any, z: any) => any
a: Record<string, unknown>

Returns

(b: Record<string, unknown>) => Record<string, unknown>

Parameters

fn: (x: any, z: any) => any
a: Record<string, unknown>

Returns

(b: Record<string, unknown>) => Output

Parameters

fn: (x: any, z: any) => any

Returns

<U, V>(a: U, b: V) => Record<string, unknown>

Parameters

fn: (x: any, z: any) => any

Returns

<U, V>(a: U, b: V) => Output