tweaked numerical type check

thanks, @joker314 for the suggestion!
pull/89/head
jmoenig 2019-02-19 22:34:57 +01:00
rodzic 1a3592de7f
commit 5bd667fc8e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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)) {