Use a heavier function check in isArrayLike.

This commit is contained in:
John-David Dalton
2015-07-16 09:56:20 -07:00
parent ab6210dc30
commit b638f86b75

View File

@@ -3831,7 +3831,8 @@
* @returns {boolean} Returns `true` if `value` is array-like, else `false`. * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
*/ */
function isArrayLike(value) { 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));
} }
/** /**