CheckDigit overview
Added in v1.0.0
Table of contents
Combinators
CheckDigit
Verifies a character of a string against a check digit algorithm, useful for ISBNs, credit cards, and others
Signature
export declare const CheckDigit: (
algorithm: (s: string) => string,
location: number | ((s: string) => number)
) => (schema: Schema<string, string>) => Schema<CheckDigitVerified>
Added in v1.0.0