summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/lodash/isArrayLike.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/lodash/isArrayLike.js')
-rw-r--r--tools/eslint/node_modules/lodash/isArrayLike.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/eslint/node_modules/lodash/isArrayLike.js b/tools/eslint/node_modules/lodash/isArrayLike.js
index 9f4ddd51bb..189a611f00 100644
--- a/tools/eslint/node_modules/lodash/isArrayLike.js
+++ b/tools/eslint/node_modules/lodash/isArrayLike.js
@@ -9,7 +9,7 @@ var getLength = require('./_getLength'),
*
* @static
* @memberOf _
- * @type Function
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
@@ -28,8 +28,7 @@ var getLength = require('./_getLength'),
* // => false
*/
function isArrayLike(value) {
- return value != null &&
- !(typeof value == 'function' && isFunction(value)) && isLength(getLength(value));
+ return value != null && isLength(getLength(value)) && !isFunction(value);
}
module.exports = isArrayLike;