Skip to content

Commit ab0bc47

Browse files
committed
Fix another case of instanceof Date for #98
1 parent d6d758f commit ab0bc47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/cmp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const getType = (x: any) => {
55
if (typeof x === "number") {
66
return "Number";
77
}
8-
if (x instanceof Date) {
8+
if (Object.prototype.toString.call(x) === "[object Date]") {
99
return "Date";
1010
}
1111
if (Array.isArray(x)) {

0 commit comments

Comments
 (0)