🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

utils-merge

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utils-merge

merge() utility function

1.0.1
latest
Source
npm
Version published
Weekly downloads
39M
10.81%
Maintainers
1
Weekly downloads
 
Created

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

Keywords

util

FAQs

Package last updated on 20 Sep 2017

Did you know?

Socket

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