Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno_class_validator/src/index.ts>arrayMinSize

Decorator-based property validation for classes.
Latest
function arrayMinSize
import { arrayMinSize } from "https://deno.land/x/deno_class_validator@v1.0.0/src/index.ts";

Checks if the array's length is greater than or equal to the specified number. If null or undefined is given then this function returns false.

Parameters

array: unknown
min: number

Returns

boolean