Socket
Socket
Sign inDemoInstall

object.assign

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object.assign - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

9

CHANGELOG.md

@@ -0,5 +1,12 @@

0.2.0 / 2014-03-15
==================
* Use a "for" loop instead of "reduce", for silly ES3 browsers.
0.1.1 / 2014-03-14
==================
* Updating readme
0.1.0 / 2014-03-14
==================
* Initial release.

9

index.js

@@ -7,6 +7,7 @@ "use strict";

var assignShim = function assign(target, source) {
return keys(source).reduce(function (target, key) {
target[key] = source[key];
return target;
}, target);
var props = keys(source);
for (var i = 0; i < props.length; ++i) {
target[props[i]] = source[props[i]];
}
return target;
};

@@ -13,0 +14,0 @@

{
"name": "object.assign",
"version": "0.1.1",
"version": "0.2.0",
"author": "Jordan Harband",

@@ -5,0 +5,0 @@ "description": "ES6 spec-compliant Object.assign shim. From https://github.com/es-shims/es6-shim",

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