Skip to main content
Module

x/unitest/deps.ts>isNull

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

Whatever argument is type of null or not

Examples

Example 1

import { isNull } from './mod.ts'
isNull(null) // true
isNull(undefined) // false

Parameters

value: unknown
  • Input any value

Returns

value is null

The result of value === null