Skip to main content
Deno 2 is finally here 🎉️
Learn more
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@v7.0.1/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).