Skip to main content
Module

x/ramda/mod.ts>mergeDeepWithKey

:ram: Practical functional Javascript
Latest
variable mergeDeepWithKey
import { mergeDeepWithKey } from "https://deno.land/x/ramda@v0.27.2/mod.ts";

Creates a new object with the own properties of the two provided objects. If a key exists in both objects:

  • and both associated values are also objects then the values will be recursively merged.
  • otherwise the provided function is applied to the key and associated values using the resulting value as the new value associated with the key. If a key only exists in one object, the value will be associated with the key of the resulting object.