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

assign.js

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assign.js - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

9

lib/assign.js
var _ = require('isa.js');
module.exports = {
copyObject: function(source, props, object, respect) {
var self = this;
object = object || { };

@@ -11,4 +12,8 @@

var key = props[index];
if( !respect || !object[key] )
object[key] = source[key];
if( _.isObject( object[key] ) ){
self.copyObject( source[key], Object.keys(source[key]), object[key], respect );
}
else
if( !respect || !object[key] )
object[key] = source[key];
}

@@ -15,0 +20,0 @@ return object;

{
"name": "assign.js",
"version": "0.1.1",
"version": "0.2.0",
"description": "Tiny libary to assign objects",

@@ -5,0 +5,0 @@ "keywords": [

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