Skip to main content
Module

x/leaves/mod.ts>validator.isPassportNumber

A Web framework For Deno with Decorator and middleware
Latest
function validator.isPassportNumber
import { validator } from "https://deno.land/x/leaves@v0.1.5/mod.ts";
const { isPassportNumber } = validator;

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