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

x/kd_clients/core/Guard.ts>Guard

Various types of HTTP clients for misc uses. This is used in the organization's infrastructure.
Go to Latest
class Guard
import { Guard } from "https://deno.land/x/kd_clients@v0.0.5/core/Guard.ts";

A class that contains functions to check if values are invalid.

Static Methods

isLessThanOne(
value: undefined | null | number,
funcName?,
paramName?,
): void

Checks if a variable value is null or undefined.

isNullOrEmptyOrUndefined<T>(
value:
| undefined
| null
| string
| T[]
| object
,
funcName?,
paramName?,
): void

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