Skip to main content
Module

x/abstruct/mod.ts>has

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

Factory for existence of property validator.

Examples

Example 1

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

Type Parameters

K extends PropertyKey