We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6d758f commit ab0bc47Copy full SHA for ab0bc47
src/lib/cmp.ts
@@ -5,7 +5,7 @@ const getType = (x: any) => {
5
if (typeof x === "number") {
6
return "Number";
7
}
8
- if (x instanceof Date) {
+ if (Object.prototype.toString.call(x) === "[object Date]") {
9
return "Date";
10
11
if (Array.isArray(x)) {
0 commit comments