function types.isDate
Usage in Deno
import { types } from "node:util"; const { isDate } = types;
isDate(object: unknown): object is Date
Returns true
if the value is a built-in Date
instance.
util.types.isDate(new Date()); // Returns true
object is Date