JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1644876
  • Score
    100M100P100Q199586F
  • License MIT

Strongly-typed deep and recursive object merging. Considers all nested levels of objects, arrays, sets and maps.

Package Exports

  • object-deep-merge
  • object-deep-merge/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (object-deep-merge) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Forcir Object Deep Merge Logo

Strongly-typed deep and recursive object merging with support for all value types.

Install

pnpm add object-deep-merge
yarn add object-deep-merge
npm install object-deep-merge

Basic Usage

import { merge } from "object-deep-merge";

Simply merge two objects, with no nested properties

const merged = merge({ foo: false }, { bar: true });

console.log({ merged });
Output
{
    "merged": {
        "foo": false,
        "bar": true
    }
}