lodash.create
Advanced tools
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7995
189