Skip to main content
Module

x/leaves/mod.ts>validator.IsISBN

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

Checks if the string is an ISBN (version 10 or 13). If given value is not a string, then it returns false.

Parameters

optional
version: IsISBNVersion
optional
validationOptions: ValidationOptions

Returns

PropertyDecorator