Skip to main content
Module

x/is_valid/composite/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/composite/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.

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.