Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

The default strategy to merge arrays into a target array.

Type Parameters

Ts extends ReadonlyArray<ReadonlyArray<unknown>>

Parameters

m_target: Reference<unknown[]>
  • The result will be mutated into this array
values: Ts
  • The arrays (including the target's value if there is one).