Use isFunction check without the typeof check.

This commit is contained in:
John-David Dalton
2016-02-22 21:37:10 -08:00
parent c1f8e31775
commit d8da7a2142

View File

@@ -9695,8 +9695,7 @@
* // => false
*/
function isArrayLike(value) {
return value != null &&
!(typeof value == 'function' && isFunction(value)) && isLength(getLength(value));
return value != null && isLength(getLength(value)) && !isFunction(value);
}
/**