lodash.partialright
Advanced tools
Comparing version 4.1.0 to 4.1.1
21
index.js
/** | ||
* lodash 4.1.0 (Custom Build) <https://lodash.com/> | ||
* lodash 4.1.1 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -34,3 +34,4 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
while (++index < length) { | ||
if (array[index] === placeholder) { | ||
var value = array[index]; | ||
if (value === placeholder || value === PLACEHOLDER) { | ||
array[index] = PLACEHOLDER; | ||
@@ -44,2 +45,14 @@ result[++resIndex] = index; | ||
/** | ||
* Gets the argument placeholder value for `func`. | ||
* | ||
* @private | ||
* @param {Function} func The function to inspect. | ||
* @returns {*} Returns the placeholder value. | ||
*/ | ||
function getPlaceholder(func) { | ||
var object = func; | ||
return object.placeholder; | ||
} | ||
/** | ||
* This method is like `_.partial` except that partially applied arguments | ||
@@ -76,5 +89,3 @@ * are appended to those provided to the new function. | ||
var partialRight = rest(function(func, partials) { | ||
var placeholder = partialRight.placeholder, | ||
holders = replaceHolders(partials, placeholder); | ||
var holders = replaceHolders(partials, getPlaceholder(partialRight)); | ||
return createWrapper(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders); | ||
@@ -81,0 +92,0 @@ }); |
{ | ||
"name": "lodash.partialright", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "The lodash method `_.partialRight` exported as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.partialright v4.1.0 | ||
# lodash.partialright v4.1.1 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.partialRight` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#partialRight) or [package source](https://github.com/lodash/lodash/blob/4.1.0-npm-packages/lodash.partialright) for more details. | ||
See the [documentation](https://lodash.com/docs#partialRight) or [package source](https://github.com/lodash/lodash/blob/4.1.1-npm-packages/lodash.partialright) for more details. |
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
5469
86