Skip to main content
Module

x/unitest/deps.ts>isDate

🃏 Deno-first universal unit testing framework
Latest
function isDate
import { isDate } from "https://deno.land/x/unitest@v1.0.0-beta.82/deps.ts";

Whatever argument is Date or not

Examples

Example 1

import { isDate } from './mod.ts'
isDate(new Date()) // true
isDate({}) // false

Parameters

value: unknown
  • Input any value

Returns

value is Date

The result of value instanceof Date