Socket
Socket
Sign inDemoInstall

utils-extend

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utils-extend - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

README.md

16

index.js

@@ -21,2 +21,3 @@ var util = require('util');

value = source[key];
if (Array.isArray(value)) {

@@ -29,3 +30,3 @@ if (!Array.isArray(target[key])) {

} else if (isObject(value)) {
if (!isObject(value)) {
if (!isObject(target[key])) {
target[key] = {};

@@ -45,4 +46,11 @@ }

exports.extend = extend;
exports.extend = function() {
var args = Array.prototype.slice.call(arguments, 0);
var target = args.shift();
args.forEach(function(item) {
extend(target, item);
});
};
exports.isObject = isObject;

@@ -52,4 +60,2 @@

exports.noop = function() {};
exports.isFunction = function(value) {

@@ -67,2 +73,4 @@ return typeof value === 'function';

exports.noop = function() {};
exports.unique = function(array) {

@@ -69,0 +77,0 @@ var result = [];

{
"name": "utils-extend",
"version": "1.0.2",
"version": "1.0.3",
"description": "Extend nodejs util api, and it is light weight and simple",

@@ -5,0 +5,0 @@ "main": "index.js",

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