Skip to main content
Module

x/rambda/mod.ts>mergeWith

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