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

x/deepmergets/dist/deno/defaults/into.ts>mergeRecords

Deeply merge 2 or more objects respecting type information.
Go to Latest
function mergeRecords
import { mergeRecords } from "https://deno.land/x/deepmergets@v7.0.1/dist/deno/defaults/into.ts";

The default strategy to merge records into a target record.

Type Parameters

Ts extends ReadonlyArray<Record<PropertyKey, unknown>>
M

Parameters

m_target: Reference<Record<PropertyKey, unknown>>
  • The result will be mutated into this record
values: Ts
  • The records (including the target's value if there is one).
utils: U
meta: M | undefined