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

lodash.create

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.create - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

28

index.js
/**
* lodash 4.0.1 (Custom Build) <https://lodash.com/>
* lodash 4.0.2 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`

@@ -17,2 +17,5 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>

/** Built-in value references. */
var objectCreate = Object.create;
/**

@@ -58,13 +61,5 @@ * Assigns `value` to `key` of `object` if the existing value is not equivalent

*/
var baseCreate = (function() {
function object() {}
return function(prototype) {
if (isObject(prototype)) {
object.prototype = prototype;
var result = new object;
object.prototype = undefined;
}
return result || {};
};
}());
function baseCreate(proto) {
return isObject(proto) ? objectCreate(proto) : {};
}

@@ -102,5 +97,8 @@ /**

while (++index < length) {
var key = props[index],
newValue = customizer ? customizer(object[key], source[key], key, object, source) : source[key];
var key = props[index];
var newValue = customizer
? customizer(object[key], source[key], key, object, source)
: source[key];
assignValue(object, key, newValue);

@@ -175,3 +173,3 @@ }

* Creates an object that inherits from the `prototype` object. If a `properties`
* object is provided its own enumerable properties are assigned to the created object.
* object is given its own enumerable properties are assigned to the created object.
*

@@ -178,0 +176,0 @@ * @static

{
"name": "lodash.create",
"version": "4.0.1",
"version": "4.0.2",
"description": "The lodash method `_.create` exported as a module.",

@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/",

@@ -1,2 +0,2 @@

# lodash.create v4.0.1
# lodash.create v4.0.2

@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.create` exported as a [Node.js](https://nodejs.org/) module.

See the [documentation](https://lodash.com/docs#create) or [package source](https://github.com/lodash/lodash/blob/4.0.1-npm-packages/lodash.create) for more details.
See the [documentation](https://lodash.com/docs#create) or [package source](https://github.com/lodash/lodash/blob/4.0.2-npm-packages/lodash.create) for more details.

Sorry, the diff of this file is not supported yet

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