Length

Checks if the given array has exactly the expected number of items

import Schema from "@rapidom/schema";

const Validator = Schema.array().length(2);

Last updated