underscore-plus
Advanced tools
Comparing version 1.6.5 to 1.6.6
@@ -140,3 +140,3 @@ (function() { | ||
deepExtend: function(target) { | ||
var i, key, object, result; | ||
var i, key, object, result, _i, _len, _ref; | ||
result = target; | ||
@@ -147,6 +147,6 @@ i = 0; | ||
if (isPlainObject(result) && isPlainObject(object)) { | ||
for (key in object) { | ||
if (object.hasOwnProperty(key)) { | ||
result[key] = plus.deepExtend(result[key], object[key]); | ||
} | ||
_ref = Object.keys(object); | ||
for (_i = 0, _len = _ref.length; _i < _len; _i++) { | ||
key = _ref[_i]; | ||
result[key] = plus.deepExtend(result[key], object[key]); | ||
} | ||
@@ -284,10 +284,8 @@ } else { | ||
mapObject: function(object, iterator) { | ||
var key, newObject, value, _ref; | ||
var key, newObject, value, _i, _len, _ref, _ref1; | ||
newObject = {}; | ||
for (key in object) { | ||
value = object[key]; | ||
if (!object.hasOwnProperty(key)) { | ||
continue; | ||
} | ||
_ref = iterator(key, value), key = _ref[0], value = _ref[1]; | ||
_ref = Object.keys(object); | ||
for (_i = 0, _len = _ref.length; _i < _len; _i++) { | ||
key = _ref[_i]; | ||
_ref1 = iterator(key, object[key]), key = _ref1[0], value = _ref1[1]; | ||
newObject[key] = value; | ||
@@ -294,0 +292,0 @@ } |
{ | ||
"name": "underscore-plus", | ||
"version": "1.6.5", | ||
"version": "1.6.6", | ||
"description": "Underscore plus additional utilities", | ||
@@ -5,0 +5,0 @@ "licenses": [ |
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
17158
512