mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 19:37:49 +00:00
Use isFunction check without the typeof check.
This commit is contained in:
@@ -9695,8 +9695,7 @@
|
|||||||
* // => false
|
* // => false
|
||||||
*/
|
*/
|
||||||
function isArrayLike(value) {
|
function isArrayLike(value) {
|
||||||
return value != null &&
|
return value != null && isLength(getLength(value)) && !isFunction(value);
|
||||||
!(typeof value == 'function' && isFunction(value)) && isLength(getLength(value));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user