mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Bump to v4.14.2.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
define(['./_getLength', './isFunction', './isLength'], function(getLength, isFunction, isLength) {
|
||||
define(['./isFunction', './isLength'], function(isFunction, isLength) {
|
||||
|
||||
/**
|
||||
* Checks if `value` is array-like. A value is considered array-like if it's
|
||||
@@ -26,7 +26,7 @@ define(['./_getLength', './isFunction', './isLength'], function(getLength, isFun
|
||||
* // => false
|
||||
*/
|
||||
function isArrayLike(value) {
|
||||
return value != null && isLength(getLength(value)) && !isFunction(value);
|
||||
return value != null && isLength(value.length) && !isFunction(value);
|
||||
}
|
||||
|
||||
return isArrayLike;
|
||||
|
||||
Reference in New Issue
Block a user