lodash._toiterable
Advanced tools
Comparing version 3.0.2 to 3.0.3
17
index.js
/** | ||
* lodash 3.0.2 (Custom Build) <https://lodash.com/> | ||
* lodash 3.0.3 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modern modularize exports="npm" -o ./` | ||
@@ -35,3 +35,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. | ||
* | ||
@@ -45,2 +45,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 length. | ||
@@ -69,3 +80,3 @@ * | ||
} | ||
if (!isLength(getLength(value))) { | ||
if (!isArrayLike(value)) { | ||
return values(value); | ||
@@ -72,0 +83,0 @@ } |
{ | ||
"name": "lodash._toiterable", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "The modern build of lodash’s internal `toIterable` as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash._toiterable v3.0.2 | ||
# lodash._toiterable v3.0.3 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `toIterable` 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.2-npm-packages/lodash._toiterable) for more details. | ||
See the [package source](https://github.com/lodash/lodash/blob/3.0.3-npm-packages/lodash._toiterable) 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
6480
131