mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Use a heavier function check in isArrayLike.
This commit is contained in:
@@ -3831,7 +3831,8 @@
|
||||
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
||||
*/
|
||||
function isArrayLike(value) {
|
||||
return value != null && typeof value != 'function' && isLength(getLength(value));
|
||||
return value != null &&
|
||||
!(typeof value == 'function' && objToString.call(value) == funcTag) && isLength(getLength(value));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user