From b28016bfeb8d2b2616409d79a77f0b394f8bd8d3 Mon Sep 17 00:00:00 2001 From: jdalton Date: Wed, 1 Apr 2015 12:07:12 -0700 Subject: [PATCH] Simplify `isLength` check in `_.keys`. --- lodash.src.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.src.js b/lodash.src.js index 23b36f67c..34bc16fff 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -9584,7 +9584,7 @@ length = object.length; } if ((typeof Ctor == 'function' && Ctor.prototype === object) || - (typeof object == 'function' ? lodash.support.enumPrototypes : (length && isLength(length)))) { + (typeof object == 'function' ? lodash.support.enumPrototypes : isLength(length))) { return shimKeys(object); } return isObject(object) ? nativeKeys(object) : [];