UNPKG

cnp-decoder

Version:

A function that decodes a romanian CNP and returns a object containing informations about the person it belongs to

1 lines 135 B
export const checkIfResident: (cnp: string) => boolean | string | undefined = cnp => cnp.split('')[0] == '7' || cnp.split('')[0] == '8'