Socket
Socket
Sign inDemoInstall

object-assign

Package Overview
Dependencies
Maintainers
1
Versions
17
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 2.0.0 to 3.0.0

license

15

index.js
'use strict';
var propIsEnumerable = Object.prototype.propertyIsEnumerable;

@@ -11,2 +12,14 @@ function ToObject(val) {

function ownEnumerableKeys(obj) {
var keys = Object.getOwnPropertyNames(obj);
if (Object.getOwnPropertySymbols) {
keys = keys.concat(Object.getOwnPropertySymbols(obj));
}
return keys.filter(function (key) {
return propIsEnumerable.call(obj, key);
});
}
module.exports = Object.assign || function (target, source) {

@@ -19,3 +32,3 @@ var from;

from = arguments[s];
keys = Object.keys(Object(from));
keys = ownEnumerableKeys(Object(from));

@@ -22,0 +35,0 @@ for (var i = 0; i < keys.length; i++) {

2

package.json
{
"name": "object-assign",
"version": "2.0.0",
"version": "3.0.0",
"description": "ES6 Object.assign() ponyfill",

@@ -5,0 +5,0 @@ "license": "MIT",

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