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

underscore-plus

Package Overview
Dependencies
Maintainers
5
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

underscore-plus - npm Package Compare versions

Comparing version 1.6.5 to 1.6.6

22

lib/underscore-plus.js

@@ -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": [

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