Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
function matches.arrayOf
Re-export
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.3.0.4/dependencies.ts";
const { arrayOf } = matches;

We would like to validate that all of the array is of the same type

Parameters

validator: Parser<unknown, A>

What is the validator for the values in the array

Returns

Parser<unknown, A[]>