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

std/collections/mod.ts>DeepMerge

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
type alias DeepMerge
import { type DeepMerge } from "https://deno.land/std@0.217.0/collections/mod.ts";

Merge deeply two objects

Type Parameters

T
U
optional
Options = Record<string, MergingStrategy>
definition: [T, U] extends [Record<PropertyKey, unknown>, Record<PropertyKey, unknown>] ? Merge<T, U, Options> : T | U