Skip to main content
Module

x/abstruct/mod.ts>minCount

Abstract structure for JavaScript data validation
Latest
function minCount
import { minCount } from "https://deno.land/x/abstruct@1.0.0/mod.ts";

Factory for min count validator. It checks items count is greater than or equal to limit.

Examples

Example 1

import { minCount } from "https://deno.land/x/abstruct@$VERSION/bindings.ts";
declare const limit: number;
const validator = minCount(limit);

Parameters

limit: number