mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-24 22:39:26 +01:00
11 lines
248 B
JavaScript
Vendored
11 lines
248 B
JavaScript
Vendored
"use strict";
|
|
|
|
var objToString = Object.prototype.toString, id = objToString.call(new Date());
|
|
|
|
module.exports = function (value) {
|
|
return (
|
|
(value && !isNaN(value) && (value instanceof Date || objToString.call(value) === id)) ||
|
|
false
|
|
);
|
|
};
|