Socket
Socket
Sign inDemoInstall

utils-merge

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

utils-merge

merge() utility function


Version published
Maintainers
1
Weekly downloads
28,030,733
increased by1.94%
Install size
4.38 kB

Weekly downloads

Package description

What is utils-merge?

The utils-merge package is a simple utility to merge objects in JavaScript. It is often used to combine configurations or settings objects where a base object is extended with properties from another object.

What are utils-merge's main functionalities?

Merging objects

This feature allows you to merge the properties of one object into another. The properties from the second object will overwrite those in the first if they have the same key.

{"const merge = require('utils-merge');
const a = { foo: 'bar' };
const b = { baz: 'qux' };
const c = merge(a, b);
console.log(c); // Output: { foo: 'bar', baz: 'qux' }"}

Other packages similar to utils-merge

Readme

Source

utils-merge

Version Build Quality Coverage Dependencies

Merges the properties from a source object into a destination object.

Install

$ npm install utils-merge

Usage

var a = { foo: 'bar' }
  , b = { bar: 'baz' };

merge(a, b);
// => { foo: 'bar', bar: 'baz' }

License

The MIT License

Copyright (c) 2013-2017 Jared Hanson <http://jaredhanson.net/>

Sponsor

Keywords

FAQs

Last updated on 20 Sep 2017

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