Skip to main content
Module

x/abstruct/deps.ts

Abstract structure for JavaScript data validation
Latest
import * as abstruct from "https://deno.land/x/abstruct@1.0.0/deps.ts";

Functions

Create right curried function.

Returns a new record with all entries of the given record except the ones that have a key that does not match the given predicate.

Interpolate JavaScript value to template.

Whether the input is bigint or not.

Weather the string is empty or not.

Whether the input is in range. It is inclusive.

Whether the input is negative number or not.

Whether the input is non-negative number or not. Non-negative number means greater than or equal to zero.

Whether the input is non-positive number or not. Non-positive number means less than or equal to zero.

Whether the array is not empty or not.

Whether the input is null or undefined or not.

Whether the input is positive number or not.

Whether the array is single element or not.

Whether the input is string or not.

Whether the input is valid Date or not.

Returns the first element that is the largest value of the given function or undefined if there are no elements.

Return memoed function.