Skip to main content

Built and signed on GitHub Actions

Pure functions for common tasks related to collection types like arrays and objects

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 months ago (1.0.10)

Functions

f
deepMerge

Merges the two given records, recursively merging any nested records with the second collection overriding the first in case of conflict.

Type Aliases

T
ArrayValueType

Get array values type

T
DeepMerge

Merge deeply two objects

T
ExpandRecursively

Force intellisense to expand the typing to hide merging typings

T
MapKeyType

Get map values types

T
MapValueType

Get map values types

T
Merge

Merge two objects

T
MergeAllArrays

Merge all sets types definitions from keys present in both objects

T
MergeAllMaps

Merge all sets types definitions from keys present in both objects

T
MergeAllRecords

Merge all records types definitions from keys present in both objects

T
MergeAllSets

Merge all sets types definitions from keys present in both objects

T
MergeRightOmitComplexes

Merge two objects, with left precedence

T
MergingStrategy

Merging strategy

T
ObjectXorKeys

Object with keys in either T or U but not in both

T
OmitComplexes

Exclude map, sets and array from type

T
PartialByType

Filter of keys matching a given type

T
SetValueType

Get set values type

Add Package

deno add jsr:@std/collections

Import symbol

import * as mod from "@std/collections/deep-merge";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@std/collections/deep-merge";

Add Package

npx jsr add @std/collections

Import symbol

import * as mod from "@std/collections/deep-merge";

Add Package

yarn dlx jsr add @std/collections

Import symbol

import * as mod from "@std/collections/deep-merge";

Add Package

pnpm dlx jsr add @std/collections

Import symbol

import * as mod from "@std/collections/deep-merge";

Add Package

bunx jsr add @std/collections

Import symbol

import * as mod from "@std/collections/deep-merge";