underscore-plus
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -355,5 +355,11 @@ (function() { | ||
isEqualForProperties: function() { | ||
var a, b, properties; | ||
var a, b, properties, property, _i, _len; | ||
a = arguments[0], b = arguments[1], properties = 3 <= arguments.length ? __slice.call(arguments, 2) : []; | ||
return _.isEqual(_.pick.apply(_, [a].concat(__slice.call(properties))), _.pick.apply(_, [b].concat(__slice.call(properties)))); | ||
for (_i = 0, _len = properties.length; _i < _len; _i++) { | ||
property = properties[_i]; | ||
if (!_.isEqual(a[property], b[property])) { | ||
return false; | ||
} | ||
} | ||
return true; | ||
} | ||
@@ -360,0 +366,0 @@ }; |
{ | ||
"name": "underscore-plus", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"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
15113
440