Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valideno/validators/number.ts>hasParity

Validate your values and schemes with this extendable validator
Latest
function hasParity
import { hasParity } from "https://deno.land/x/valideno@v1.0.0/validators/number.ts";

Parameters

optional
unnamed 0: { allowNaN?: boolean; odd?: boolean; even?: boolean; divisibleBy?: number; } = [UNSUPPORTED]