Skip to main content
Module

x/maybe/mod.ts>isNil

A deno module for handling null and undefined values, inspired by Rusts Option<T>
Latest
function isNil
import { isNil } from "https://deno.land/x/maybe@2.0.0/mod.ts";

Equivalent to nodes isNullOrUndefined, asserts whether given value is null | undefined or not

Parameters

value: Maybe<unknown>

Value that is possibly null or undefined

Returns

value is null | undefined