Skip to main content
Module

x/isx/is_null.ts>isNull

Collection of validation functions for JavaScript data
Latest
function isNull
import { isNull } from "https://deno.land/x/isx@1.5.0/is_null.ts";

Whether the input is null or not.

Examples

Example 1

import { isNull } from "https://deno.land/x/isx@$VERSION/is_null.ts"
import { assertEquals } from "https://deno.land/std/testing/asserts.ts"
assertEquals(isNull(null), true)
assertEquals(isNull(undefined), false)

Parameters

input: unknown
  • Any input.

Returns

input is null