Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/is_valid/mod.ts

A pure functional validator with composite function and validation utilities
Latest
import * as isValid from "https://deno.land/x/is_valid@v1.0.0-beta.16/mod.ts";

Variables

A function that casts the return value of a function.

Cast function for symbol

Cast function for undefined or null

Cast function for null

Cast function for number

Cast function for string

Cast function for undefined

Utility function to convert arguments.

Iteration of validators that returns true when everything are false.

Iteration of validators that returns true when everything are true.

Receives a validator and message pair and returns a message when validation is false.

Receives a validator and message pair and returns all message array when validation is false.

Create length validator of greater equal then val. It's inclusive.

Create length validator of greater then val. It's exclusive.

Whatever argument is Array or not.

Whatever argument is type of bigint or not.

Whatever argument is type of boolean or not.

Returns true if the given value is its type's empty value; otherwise false.

Whatever argument is type of function or not.

Whatever argument is JSON Object or not.

Whatever val is left side trimmable or not.

Whatever argument length is 0 or not.

Whatever argument is Lower case string or not.

Whatever argument is type of undefined or null.

Whatever argument is type of null or not.

Whatever argument is type of number or not.

Whatever argument is type of object or not.

Whatever argument is primitive or not.

Whatever val is right side trimmable or not.

Whatever argument is type of string or not.

Whatever argument is type of symbol or not.

Whatever val is trimmable or not.

Whatever argument is type of undefined or not.

Whatever argument is Upper case string or not.

Create length validator of less equal then val. It's inclusive.

Create length validator of less then val. It's exclusive.

Iteration of validators that returns true when some validators are true.

Iteration of validators that returns true when some validators are false.

Receives a validator and message pair and returns a message when validation is true.

Receives a validator and message pair and returns all message array when validation is true.