mix-objects
Advanced tools
Comparing version 0.0.1 to 0.0.2
18
index.js
@@ -1,4 +0,5 @@ | ||
module.exports = mix; | ||
module.exports = multiple; | ||
module.exports.one = one; | ||
function mix (target, sources) { | ||
function multiple (target, sources) { | ||
var i = -1; | ||
@@ -9,6 +10,3 @@ var len = sources.length; | ||
while (++i < len) { | ||
for (key in sources[i]) { | ||
if (target.hasOwnProperty(key)) continue; | ||
target[key] = sources[i][key]; | ||
} | ||
one(target, sources[i]); | ||
} | ||
@@ -18,1 +16,9 @@ | ||
} | ||
function one (target, source) { | ||
var key; | ||
for (key in source) { | ||
if (target.hasOwnProperty(key)) continue; | ||
target[key] = source[key]; | ||
} | ||
} |
{ | ||
"name": "mix-objects", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Mix specified objects", | ||
@@ -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
1081
18