Skip to main content
Module

x/abstruct/bindings.ts>count

Abstract structure for JavaScript data validation
Go to Latest
function count
import { count } from "https://deno.land/x/abstruct@1.0.0-beta.12/bindings.ts";

Factory for count validator. It checks count(size, length) of items.

Examples

Example 1

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

Parameters

of: number