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

x/rambda/mod.ts>mergeWith

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

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