Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
util-deep-merge
Advanced tools
A small utility for deeply merging two different Javascript objects.
yarn add util-deep-merge
import deepMerge from 'util-deep-merge';
const array1 = [1, 2];
const array2 = [2, 3];
deepMerge(array1, array2);
// => [1, 2, 3]
const obj1 = { id: 1 };
const obj2 = { name: 'Mark' };
deepMerge(obj1, obj2);
// => { id: 1, name: 'Mark' }
const obj1 = { ids: [1, 2, 3] };
const obj2 = { ids: [2, 3, 4, 5] };
deepMerge(obj1, obj2);
// => { ids: [1, 2, 3, 4, 5] };
deepMerge('a', 'b');
// => 'b'
deepMerge(1, 2);
// => 2
FAQs
Deeply merge Javascript objects and arrays
We found that util-deep-merge demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.