lodash.assignin
Advanced tools
Comparing version 4.0.8 to 4.0.9
36
index.js
/** | ||
* lodash 4.0.8 (Custom Build) <https://lodash.com/> | ||
* lodash (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -22,16 +22,2 @@ * Copyright jQuery Foundation and other contributors <https://jquery.org/> | ||
/** | ||
* Checks if `value` is a valid array-like index. | ||
* | ||
* @private | ||
* @param {*} value The value to check. | ||
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. | ||
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`. | ||
*/ | ||
function isIndex(value, length) { | ||
value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1; | ||
length = length == null ? MAX_SAFE_INTEGER : length; | ||
return value > -1 && value % 1 == 0 && value < length; | ||
} | ||
/** Used for built-in method references. */ | ||
@@ -79,3 +65,3 @@ var objectProto = Object.prototype; | ||
* @param {string} key The key of the property to get. | ||
* @returns {Function} Returns the new function. | ||
* @returns {Function} Returns the new accessor function. | ||
*/ | ||
@@ -130,3 +116,3 @@ function baseProperty(key) { | ||
customizer = typeof customizer == 'function' | ||
customizer = (assigner.length > 3 && typeof customizer == 'function') | ||
? (length--, customizer) | ||
@@ -164,2 +150,17 @@ : undefined; | ||
/** | ||
* Checks if `value` is a valid array-like index. | ||
* | ||
* @private | ||
* @param {*} value The value to check. | ||
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. | ||
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`. | ||
*/ | ||
function isIndex(value, length) { | ||
length = length == null ? MAX_SAFE_INTEGER : length; | ||
return !!length && | ||
(typeof value == 'number' || reIsUint.test(value)) && | ||
(value > -1 && value % 1 == 0 && value < length); | ||
} | ||
/** | ||
* Checks if the given arguments are from an iteratee call. | ||
@@ -369,2 +370,3 @@ * | ||
* @returns {Object} Returns `object`. | ||
* @see _.assign | ||
* @example | ||
@@ -371,0 +373,0 @@ * |
{ | ||
"name": "lodash.assignin", | ||
"version": "4.0.8", | ||
"version": "4.0.9", | ||
"description": "The lodash method `_.assignIn` exported as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.assignin v4.0.8 | ||
# lodash.assignin v4.0.9 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.assignIn` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#assignIn) or [package source](https://github.com/lodash/lodash/blob/4.0.8-npm-packages/lodash.assignin) for more details. | ||
See the [documentation](https://lodash.com/docs#assignIn) or [package source](https://github.com/lodash/lodash/blob/4.0.9-npm-packages/lodash.assignin) 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
13721
363