Skip to main content
Module

x/abstruct/mod.ts>eq

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

Validator factory equivalent to strict equality(===) operator.

Examples

Example 1

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

Type Parameters

optional
RIn = unknown