From 5bd667fc8e3c392d1ce515ab2e179a26335f5e9e Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 19 Feb 2019 22:34:57 +0100 Subject: [PATCH] tweaked numerical type check thanks, @joker314 for the suggestion! --- src/threads.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/threads.js b/src/threads.js index 0d8242ef..72237b3b 100644 --- a/src/threads.js +++ b/src/threads.js @@ -2464,7 +2464,7 @@ Process.prototype.reportTypeOf = function (thing) { if (thing instanceof List) { return 'list'; } - if (parseFloat(thing) === +thing && !isNaN(+thing)) { // I hate this! -Jens + if (parseFloat(thing) === +thing) { // I hate this! -Jens return 'number'; } if (isString(thing)) {