Validate a Danish (DK) identity, business or VAT document.
Document type, either fully-qualified (DK_CPR, DK_CVR, DK_VAT) or short (CPR, CVR, VAT, MOMS).
DK_CPR
DK_CVR
DK_VAT
CPR
CVR
VAT
MOMS
Raw document string (formatting tolerated).
true if the value passes DK-specific validation rules.
true
import { validate } from "nationid/dk";validate("DK_CPR", "070761-4285"); // truevalidate("CVR", "13585628"); Copy
import { validate } from "nationid/dk";validate("DK_CPR", "070761-4285"); // truevalidate("CVR", "13585628");
Validate a Danish (DK) identity, business or VAT document.