diff options
| author | ST-DDT <[email protected]> | 2023-10-21 08:58:18 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-21 06:58:18 +0000 |
| commit | f222448cabedee3e8ac4f64f8003df0954de2913 (patch) | |
| tree | f78bc0a84b356f4a91292e33ee34b47c889f45db /src/modules/date | |
| parent | 85403819af2c47e4f9d24c66ca34c844a6151bdb (diff) | |
| download | faker-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.ts | 2 |
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(); } |
