just-extend
Advanced tools
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4238
55