Skip to main content
Module

x/is_valid_package_name/deps.ts

Validation for package name
Latest
import * as isValidPackageName from "https://deno.land/x/is_valid_package_name@v1.0.0/deps.ts";

Variables

Returns return value if argument is function; otherwise returns the value as it is.

Returns true if both arguments are true; otherwise false.

A function that casts the return value of a function.

Returns an array of key/values of the enumerable properties of an object.

Iteration of validators that returns true when everything are false.

Returns the first element of the given list or string.

Recursively flattens array.

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

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

Returns whether or not an object has an own property with the specified name.

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.

Whatever argument is Array or not.

Whatever argument is type of boolean or not.

Whatever argument is type of function or not.

Whatever argument length is 0 or not.

Whatever argument is type of string or not.

Whatever argument is type of undefined or not.

Returns the names of the enumerable string properties and methods of an object.

Returns the number of elements in the array or string length.

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

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

Takes a function, applies the function to each, and returns a result of the same shape.

v
N

Returns the ! of its argument.

Abbreviation for Not Not. 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.

Returns a function that when supplied an object returns the indicated property of that object, if it exists.

Checks if a string starts with the provided substring.

Removes whitespace from both 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.

Returns a new Array containing only one copy of each element in the original array. equal is used to determine equality.

Type Aliases

Type of any function.