Socket
Socket
Sign inDemoInstall

@henry781/deep-merge

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @henry781/deep-merge

[![Build Status](https://travis-ci.com/henry781/deep-merge.svg?branch=master)](https://travis-ci.com/henry781/deep-merge)


Version published
Weekly downloads
52
increased by67.74%
Maintainers
1
Install size
16.9 kB
Created
Weekly downloads
 

Readme

Source

deep-merge

Build Status

Deep merge allows to merge with context.

const obj1 = {
    A: 'A obj1',
};
const obj2 = {
    B: 'B obj2',
};

let result = Merge.merge({}, obj1, {context: 'obj1'});
result = Merge.merge(result, obj2, {context: 'obj2'});

console.log(result._context.A);
// obj1

console.log(result._context.B);
// obj2

console.log(result);
// {
//    A: "A obj1",
//    B: "B obj2"
// }

FAQs

Last updated on 04 Mar 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc