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-04-22 10:53:22 -05:00
2020-04-10 10:47:57 -05:00
2025-04-22 10:53:22 -05:00
2025-04-22 10:53:22 -05:00