Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno_class_validator/src/index.ts>isMACAddress

Decorator-based property validation for classes.
Latest
function isMACAddress
import { isMACAddress } from "https://deno.land/x/deno_class_validator@v1.0.0/src/index.ts";

Check if the string is a MAC address. If given value is not a string, then it returns false.

Parameters

value: unknown
optional
options: ValidatorJS.IsMACAddressOptions

Returns

boolean