Skip to main content
Module

x/nameable/deps.ts>gtLength

Cross-check whether it can be used as a package name or domain name
Latest
variable gtLength
import { gtLength } from "https://deno.land/x/nameable@v1.1.0-beta.4/deps.ts";

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

Examples

Example 1

const gtLength3 = gtLength(3)
gtLength3('bad') // false
gtLength3(['hello', 'world', 'tom']) // false
gtLength3('good') // true

type

(val: number) => unknown