Skip to main content
Go to Latest
function matches.arrayOf
Re-export
import { matches } from "https://deno.land/x/embassyd_sdk@v0.3.1.1.4/mod.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[]>