lodash._isiterateecall
Advanced tools
Comparing version 3.0.6 to 3.0.7
25
index.js
/** | ||
* lodash 3.0.6 (Custom Build) <https://lodash.com/> | ||
* lodash 3.0.7 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modern modularize exports="npm" -o ./` | ||
@@ -33,3 +33,3 @@ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
* **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) | ||
* in Safari on iOS 8.1 ARM64. | ||
* that affects Safari on at least iOS 8.1-8.3 ARM64. | ||
* | ||
@@ -43,2 +43,13 @@ * @private | ||
/** | ||
* Checks if `value` is array-like. | ||
* | ||
* @private | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is array-like, else `false`. | ||
*/ | ||
function isArrayLike(value) { | ||
return value != null && isLength(getLength(value)); | ||
} | ||
/** | ||
* Checks if `value` is a valid array-like index. | ||
@@ -71,9 +82,5 @@ * | ||
var type = typeof index; | ||
if (type == 'number') { | ||
var length = getLength(object), | ||
prereq = isLength(length) && isIndex(index, length); | ||
} else { | ||
prereq = type == 'string' && index in object; | ||
} | ||
if (prereq) { | ||
if (type == 'number' | ||
? (isArrayLike(object) && isIndex(index, object.length)) | ||
: (type == 'string' && index in object)) { | ||
var other = object[index]; | ||
@@ -80,0 +87,0 @@ return value === value ? (value === other) : (other !== other); |
{ | ||
"name": "lodash._isiterateecall", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "The modern build of lodash’s internal `isIterateeCall` as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash._isiterateecall v3.0.6 | ||
# lodash._isiterateecall v3.0.7 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `isIterateeCall` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
See the [package source](https://github.com/lodash/lodash/blob/3.0.6-npm-packages/lodash._isiterateecall) for more details. | ||
See the [package source](https://github.com/lodash/lodash/blob/3.0.7-npm-packages/lodash._isiterateecall) 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
6581
120