Skip to content

Commit

Permalink
Removed typo in toDate/index.ts (#3626)
Browse files Browse the repository at this point in the history
Fixed internal `toDate` not processing string arguments properly
  • Loading branch information
goku4199 committed Dec 21, 2023
1 parent c15e891 commit e2d52ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toDate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function toDate<DateType extends Date>(
} else if (
typeof argument === "number" ||
argStr === "[object Number]" ||
typeof argStr === "string" ||
typeof argument === "string" ||
argStr === "[object String]"
) {
// TODO: Can we get rid of as?
Expand Down

0 comments on commit e2d52ce

Please sign in to comment.