From e9230463e862c9d43d61f46f29bce822072e5581 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 15 Sep 2015 22:08:51 -0700 Subject: [PATCH] Fix host object tests for `_.isInteger` and `_.isSafeInteger`. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index cc7e1cf75..c28fd5e0d 100644 --- a/lodash.js +++ b/lodash.js @@ -8573,7 +8573,7 @@ * // => false */ function isInteger(value) { - return value === toInteger(value); + return typeof value == 'number' && value == toInteger(value); } /**