Function isSocialSecurityNumberDK

  • Checks if the given string is a valid Danish Social Security Number (SSN).

    Parameters

    • ssn: string

      The string to be checked.

    Returns boolean

    A boolean indicating whether the string is a valid Danish SSN.

    Remarks

    This function uses the parseSocialSecurityNumberDK function to validate the SSN.

    Throws

    Will throw an error if the parseSocialSecurityNumberDK function throws an error.

    Example

    isSocialSecurityNumberDK('123456-7890');;
    //=> true
    isSocialSecurityNumberDK('123456-789');;
    //=> false

Generated using TypeDoc