aboutsummaryrefslogtreecommitdiff
path: root/src/modules/date
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-10-21 08:58:18 +0200
committerGitHub <[email protected]>2023-10-21 06:58:18 +0000
commitf222448cabedee3e8ac4f64f8003df0954de2913 (patch)
treef78bc0a84b356f4a91292e33ee34b47c889f45db /src/modules/date
parent85403819af2c47e4f9d24c66ca34c844a6151bdb (diff)
downloadfaker-f222448cabedee3e8ac4f64f8003df0954de2913.tar.xz
faker-f222448cabedee3e8ac4f64f8003df0954de2913.zip
infra(unicorn): prefer-number-properties (#2452)
Diffstat (limited to 'src/modules/date')
-rw-r--r--src/modules/date/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/date/index.ts b/src/modules/date/index.ts
index 8f7efaae..e93be54d 100644
--- a/src/modules/date/index.ts
+++ b/src/modules/date/index.ts
@@ -16,7 +16,7 @@ function toDate(
fallback: () => Date
): Date {
date = new Date(date);
- if (isNaN(date.valueOf())) {
+ if (Number.isNaN(date.valueOf())) {
date = fallback();
}