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

x/rambda/rambda.js>mergeDeepRight

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

Creates a new object with the own properties of the first object merged with the own properties of the second object. If a key exists in both objects:

  • and both values are objects, the two values will be recursively merged
  • otherwise the value from the second object will be used.

Parameters

target: object
newProps: object

Parameters

target: object

Returns

(newProps: object) => Output