Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/mod.ts>reduceItems

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

Creates a reduce items transformation action.

Type Parameters

TInput extends readonly unknown[]
TOutput

Parameters

operation: ArrayAction<TInput, TOutput>

The reduce items operation.

initial: TOutput

The initial value.

Returns

A reduce items action.