Skip to main content
Module

x/valibot/mod.ts>some

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

Creates a pipeline validation action that validates the items of an array.

Type Parameters

TInput extends any[]

Parameters

requirement: (
element: TInput[number],
index: number,
array: TInput[number][],
) => boolean

The validation function.

optional
message: ErrorMessage

The error message.

Returns

A validation action.