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>isPassportNumber

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

Check if the string is a valid passport number relative to a specific country code. If given value is not a string, then it returns false.

Parameters

value: unknown
countryCode: string

Returns

boolean