Skip to main content
Module

x/valibot/src/actions/index.ts>reduceItems

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

Creates a reduce items transformation action.

Type Parameters

TInput extends ArrayInput
TOutput

Parameters

operation: ArrayAction<TInput, TOutput>

The reduce items operation.

initial: TOutput

The initial value.

Returns

A reduce items action.