Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/kd_clients/core/Utils.ts>Utils.isNothing

Various HTTP clients for miscellaneous use.
Go to Latest
method Utils.isNothing
import { Utils } from "https://deno.land/x/kd_clients@v1.0.0-preview.12/core/Utils.ts";

Checks if the value is null, undefined, or empty.

Parameters

value:
| undefined
| null
| string
| number
| boolean
| T[]
| (() => T)
| object

The value to check.

Returns

value is
| undefined
| null
| ""
| number
| T[]
| (() => T)

True if the value is null, undefined, or empty, otherwise false.