Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

just-extend

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-extend - npm Package Compare versions

Comparing version 2.1.0 to 3.0.0

15

index.js

@@ -46,9 +46,10 @@ module.exports = extend;

for (var key in extender) {
// include prototype properties
var value = extender[key];
if (deep && isCloneable(value)) {
var base = Array.isArray(value) ? [] : {};
result[key] = extend(true, result[key] || base, value);
} else {
result[key] = value;
if (extender.hasOwnProperty(key)) {
var value = extender[key];
if (deep && isCloneable(value)) {
var base = Array.isArray(value) ? [] : {};
result[key] = extend(true, result[key] || base, value);
} else {
result[key] = value;
}
}

@@ -55,0 +56,0 @@ }

{
"name": "just-extend",
"version": "2.1.0",
"version": "3.0.0",
"description": "extend an object",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc