UNPKG

agegate

Version:

A simple function that verifies a date of birth against a country's legal drinking age.

9 lines (7 loc) 203 B
export default function agegate(date: Date | string, countryCode: string): boolean; export interface Country { code: string; name: string; age: number; } export function getData(): Array<Country>