Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/index.ts>includes

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
function includes
import { includes } from "https://deno.land/x/valibot@v0.5.0/src/index.ts";

Type Parameters

TInput extends string

Parameters

requirement: string
optional
error: string

Returns

(input: TInput, info: ValidateInfo) => TInput

Type Parameters

TInput extends TItem[]
TItem

Parameters

requirement: TItem
optional
error: string

Returns

(input: TInput, info: ValidateInfo) => TInput