Skip to main content
Module

x/is_valid/deps.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/deps.ts";

Variables

Returns true if both arguments are true; otherwise false.

Safe getter for constructor.name.

Returns true if the first argument is greater than the second; otherwise false.

Returns true if the first argument is greater than or equal to the second; otherwise false.

Return the onTrue or the onFalse value depending upon the result of the condition val.

Creates a function that will process either the onTrue or the onFalse function depending upon the result of the condition predicate.

Returns length property.

Returns true if the first argument is less than the second; otherwise false.

Returns true if the first argument is less than or equal to the second; otherwise false.

v
N

Returns the ! of its argument.

Returns the function as is with return value !.

Returns true if one or both of its arguments are true; otherwise false.

Performs left-to-right function composition.

Removes whitespace from both ends of the string.

Removes space from left ends of the string.

Removes space from right ends of the string.

tryCatch takes two functions, a tryer and a catcher. The returned function evaluates the tryer; if it does not throw, it simply returns the result. If the tryer does throw, the returned function evaluates the catcher function and returns its result.

Type Aliases

Type of any function.

Alias for Empty values

Alias for Primitive values types.