From d8da7a2142bd81d18446bc706a8b931f611f0576 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 22 Feb 2016 21:37:10 -0800 Subject: [PATCH] Use `isFunction` check without the `typeof` check. --- lodash.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index 2ca2ba1e3..ddadd181d 100644 --- a/lodash.js +++ b/lodash.js @@ -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); } /**