Ryan Staples 3e7bd2f681
Change instanceof(Date) to util.types.isDate(Date) (#2862)
* change instanceof to isDate

* use both methods to check for valid Date

* add test for PR 2862

* use only isDate(date) in place of instanceof Date

* Extend compatibility of `isDate` use back to Node 8

* Clean up test

---------

Co-authored-by: Charmander <~@charmander.me>
Reviewed-by: Charmander <~@charmander.me>
2025-05-26 22:37:13 +00:00
..
2025-05-12 11:49:59 -05:00
2025-05-12 11:49:59 -05:00
2025-05-12 11:49:59 -05:00
2025-05-12 11:49:59 -05:00