UNPKG

@types/validator

Version:
10 lines (9 loc) 303 B
/** * Validator function * Return true if the passed string is a valid tax identification number * for the specified locale. * Throw an error exception if the locale is not supported. * @param str * @param [locale=en-US] */ export default function isTaxID(str: string, locale?: string): boolean;