Skip to content

Commit

Permalink
Fix another case of instanceof Date for #98
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Jun 13, 2024
1 parent d6d758f commit ab0bc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/cmp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const getType = (x: any) => {
if (typeof x === "number") {
return "Number";
}
if (x instanceof Date) {
if (Object.prototype.toString.call(x) === "[object Date]") {
return "Date";
}
if (Array.isArray(x)) {
Expand Down

0 comments on commit ab0bc47

Please sign in to comment.