diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index a111b3a0d6ce4e..75ac002a3a9069 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -1085,6 +1085,10 @@ Type: End-of-Life The `util.isDate()` API has been removed. Please use `arg instanceof Date` instead. +Also for stronger approaches, consider using: +`Date.prototype.toString.call(arg) === '[object Date]' && !isNaN(arg)`. +This can also be used in a `try/catch` block to handle invalid date objects. + ### DEP0048: `util.isError()`