mirror of
https://github.com/hanzoai/es5-ext.git
synced 2026-09-24 16:58:43 +00:00
fix: maximum time value reference
This commit is contained in:
@@ -4,6 +4,6 @@ module.exports = function (value) {
|
||||
try { value = Number(value); }
|
||||
catch (e) { return false; }
|
||||
if (isNaN(value)) return false;
|
||||
if (Math.abs(value) > 8.64e16) return false;
|
||||
if (Math.abs(value) > 8.64e15) return false;
|
||||
return true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user