lodash._createwrapper
Advanced tools
Comparing version 3.2.0 to 4.0.0
32
index.js
/** | ||
* lodash 3.2.0 (Custom Build) <https://lodash.com/> | ||
* lodash 4.0.0 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -124,2 +124,5 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
/** Built-in value references. */ | ||
var objectCreate = Object.create; | ||
/* Built-in method references for those with the same name as other `lodash` methods. */ | ||
@@ -137,13 +140,5 @@ var nativeMax = Math.max, | ||
*/ | ||
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) : {}; | ||
} | ||
@@ -365,3 +360,6 @@ /** | ||
if (length < arity) { | ||
return createRecurryWrapper(func, bitmask, createHybridWrapper, placeholder, thisArg, args, argsHolders, argPos, ary, arity - length); | ||
return createRecurryWrapper( | ||
func, bitmask, createHybridWrapper, placeholder, thisArg, args, | ||
argsHolders, argPos, ary, arity - length | ||
); | ||
} | ||
@@ -453,4 +451,4 @@ } | ||
} | ||
var result = wrapFunc(func, bitmask, thisArg, newPartials, newsHolders, newPartialsRight, newHoldersRight, newArgPos, ary, arity); | ||
result.placeholder = placeholder; | ||
@@ -505,4 +503,8 @@ return result; | ||
} | ||
var newData = [func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity]; | ||
var newData = [ | ||
func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, | ||
argPos, ary, arity | ||
]; | ||
func = newData[0]; | ||
@@ -509,0 +511,0 @@ bitmask = newData[1]; |
{ | ||
"name": "lodash._createwrapper", | ||
"version": "3.2.0", | ||
"version": "4.0.0", | ||
"description": "The internal lodash function `createWrapper` exported as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash._createwrapper v3.2.0 | ||
# lodash._createwrapper v4.0.0 | ||
@@ -18,2 +18,2 @@ The internal [lodash](https://lodash.com/) function `createWrapper` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash._createwrapper) for more details. | ||
See the [package source](https://github.com/lodash/lodash/blob/4.0.0-npm-packages/lodash._createwrapper) 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
24174