deepmerge

  • Version 4.3.1
  • Published
  • 31.2 kB
  • No dependencies
  • MIT license

Install

npm i deepmerge
yarn add deepmerge
pnpm add deepmerge

Overview

A library for deep (recursive) merging of Javascript objects

Index

Functions

function all

all: {
(objects: object[], options?: Options): object;
<T>(objects: Partial<T>[], options?: Options): T;
};

    function deepmerge

    deepmerge: typeof deepmerge;

      Interfaces

      interface ArrayMergeOptions

      interface ArrayMergeOptions {}

        method cloneUnlessOtherwiseSpecified

        cloneUnlessOtherwiseSpecified: (value: object, options?: Options) => object;

          method isMergeableObject

          isMergeableObject: (value: object) => boolean;

            interface Options

            interface Options {}

              property clone

              clone?: boolean;

                property customMerge

                customMerge?: (
                key: string,
                options?: Options
                ) => ((x: any, y: any) => any) | undefined;

                  method arrayMerge

                  arrayMerge: (target: any[], source: any[], options?: ArrayMergeOptions) => any[];

                    method isMergeableObject

                    isMergeableObject: (value: object) => boolean;

                      Package Files (1)

                      Dependencies (0)

                      No dependencies.

                      Dev Dependencies (11)

                      Peer Dependencies (0)

                      No peer dependencies.

                      Badge

                      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/deepmerge.

                      • Markdown
                        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/deepmerge)
                      • HTML
                        <a href="https://www.jsdocs.io/package/deepmerge"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>