Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kd_clients/core/Guard.ts>Guard

Various HTTP clients for miscellaneous use.
Latest
class Guard
import { Guard } from "https://deno.land/x/kd_clients@v1.0.0-preview.13/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.

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

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